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 98a841a81c..33e32a3541 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 'package:flutter_tools/src/base/io.dart'; 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 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'build', 'apk', '--analyze-size', @@ -55,7 +57,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'build', 'ios', '--analyze-size', @@ -87,7 +88,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'build', 'apk', '--analyze-size', @@ -106,7 +106,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'build', 'apk', '--analyze-size', @@ -125,7 +124,6 @@ void main() { final ProcessResult result = await processManager.run([ 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 d3f024758a..1297a8bf7a 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 'package:flutter_tools/src/features.dart'; 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([ flutterBin, - ...getLocalEngineArguments(), '-h', '-v', ]); @@ -37,7 +39,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), '-?', ]); @@ -52,7 +53,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'doctor', '-v', ]); @@ -65,7 +65,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'doctor', '-vv', ]); @@ -78,7 +77,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'config', ]); @@ -108,7 +106,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'run', '--show-test-device', // ensure command can fail to run and hit injection of correct logger. '--machine', @@ -125,7 +122,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'attach', '--machine', '-v', @@ -138,7 +134,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), '--version', '--machine', ]); @@ -158,7 +153,6 @@ void main() { final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), '--show-test-device', 'attach', '-d', @@ -176,7 +170,6 @@ void main() { final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), '--show-test-device', 'attach', '-d', @@ -202,7 +195,6 @@ void main() { bootstrap.writeAsStringSync('echo TESTING 1 2 3'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), ]); expect(result.stdout, contains('TESTING 1 2 3')); @@ -216,7 +208,6 @@ void main() { final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'build', 'apk', '--bundle-sksl-path=foo/bar/baz.json', // This file does not exist. @@ -231,7 +222,6 @@ void main() { final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), '--show-test-device', 'attach', '--release', @@ -245,7 +235,6 @@ void main() { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run([ flutterBin, - ...getLocalEngineArguments(), 'update-packages', '--crash', ], environment: {