From 72aa23eb935dc9d1d667163e7ffffcb1e7319de8 Mon Sep 17 00:00:00 2001 From: Martin Kustermann Date: Fri, 11 Dec 2020 17:10:32 +0100 Subject: [PATCH] Revert "Pass --local-engine* flags from dev/bots/test.dart down to `pub test` via env variables (#71721)" (#72141) This reverts commit 4300226a50670cff49693dfa26a2d6844238718d. Reason for revert: The original PR correctly passes down the local engine flags to subprocesses of the tests. Though this causes issues because some tests assume a specific target but do not modify the value for `--local-engine` (which is set to `host_debug`) to reflect that. See more discussion here: https://github.com/flutter/flutter/pull/71721#issuecomment-743218994 --- dev/bots/test.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/dev/bots/test.dart b/dev/bots/test.dart index cc5b607a58..2ac702a1d4 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -56,8 +56,6 @@ final String flutterTester = path.join(flutterRoot, 'bin', 'cache', 'artifacts', /// configuration) -- prefilled with the arguments passed to test.dart. final List flutterTestArgs = []; -final Map localEngineEnv = {}; - final bool useFlutterTestFormatter = Platform.environment['FLUTTER_TEST_FORMATTER'] == 'true'; @@ -107,13 +105,6 @@ Future main(List args) async { print('$clock STARTING ANALYSIS'); try { flutterTestArgs.addAll(args); - for (final String arg in args) { - if (arg.startsWith('--local-engine=')) - localEngineEnv['FLUTTER_LOCAL_ENGINE'] = arg.substring('--local-engine='.length); - if (arg.startsWith('--local-engine-src-path=')) - localEngineEnv['FLUTTER_LOCAL_ENGINE_SRC_PATH'] = arg.substring('--local-engine-src-path='.length); - } - if (Platform.environment.containsKey(CIRRUS_TASK_NAME)) print('Running task: ${Platform.environment[CIRRUS_TASK_NAME]}'); print('═' * 80); @@ -1240,7 +1231,6 @@ Future _pubRunTest(String workingDirectory, { ]; final Map pubEnvironment = { 'FLUTTER_ROOT': flutterRoot, - ...localEngineEnv }; if (Directory(pubCache).existsSync()) { pubEnvironment['PUB_CACHE'] = pubCache;