[flutter_tools] remove getLocalEngineArtifacts from integration tests that cant use it (#83282)
diff --git a/packages/flutter_tools/test/integration.shard/analyze_size_test.dart b/packages/flutter_tools/test/integration.shard/analyze_size_test.dart
index 98a841a..33e32a3 100644
--- a/packages/flutter_tools/test/integration.shard/analyze_size_test.dart
+++ b/packages/flutter_tools/test/integration.shard/analyze_size_test.dart
@@ -11,6 +11,9 @@
import '../src/common.dart';
import 'test_utils.dart';
+// This test file does not use [getLocalEngineArguments] because it requires
+// multiple specific artifact output types.
+
const String apkDebugMessage = 'A summary of your APK analysis can be found at: ';
const String iosDebugMessage = 'A summary of your iOS bundle analysis can be found at: ';
const String runDevToolsMessage = 'flutter pub global activate devtools; flutter pub global run devtools ';
@@ -21,7 +24,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'build',
'apk',
'--analyze-size',
@@ -55,7 +57,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'build',
'ios',
'--analyze-size',
@@ -87,7 +88,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'build',
'apk',
'--analyze-size',
@@ -106,7 +106,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'build',
'apk',
'--analyze-size',
@@ -125,7 +124,6 @@
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'build',
'apk',
'--analyze-size',
diff --git a/packages/flutter_tools/test/integration.shard/command_output_test.dart b/packages/flutter_tools/test/integration.shard/command_output_test.dart
index d3f0247..1297a8b 100644
--- a/packages/flutter_tools/test/integration.shard/command_output_test.dart
+++ b/packages/flutter_tools/test/integration.shard/command_output_test.dart
@@ -13,12 +13,14 @@
import '../src/common.dart';
import 'test_utils.dart';
+// This test file does not use [getLocalEngineArguments] because it is testing
+// command output and not using cached artifacts.
+
void main() {
testWithoutContext('All development tools and deprecated commands are hidden and help text is not verbose', () async {
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'-h',
'-v',
]);
@@ -37,7 +39,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'-?',
]);
@@ -52,7 +53,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'doctor',
'-v',
]);
@@ -65,7 +65,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'doctor',
'-vv',
]);
@@ -78,7 +77,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'config',
]);
@@ -108,7 +106,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'run',
'--show-test-device', // ensure command can fail to run and hit injection of correct logger.
'--machine',
@@ -125,7 +122,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'attach',
'--machine',
'-v',
@@ -138,7 +134,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'--version',
'--machine',
]);
@@ -158,7 +153,6 @@
final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'--show-test-device',
'attach',
'-d',
@@ -176,7 +170,6 @@
final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'--show-test-device',
'attach',
'-d',
@@ -202,7 +195,6 @@
bootstrap.writeAsStringSync('echo TESTING 1 2 3');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
]);
expect(result.stdout, contains('TESTING 1 2 3'));
@@ -216,7 +208,6 @@
final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'build',
'apk',
'--bundle-sksl-path=foo/bar/baz.json', // This file does not exist.
@@ -231,7 +222,6 @@
final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'--show-test-device',
'attach',
'--release',
@@ -245,7 +235,6 @@
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
flutterBin,
- ...getLocalEngineArguments(),
'update-packages',
'--crash',
], environment: <String, String>{