@@ -137,7 +137,7 @@ const Map<String, List<String>> kWebTestFileKnownFailures = <String, List<String
137
137
],
138
138
};
139
139
140
- const String kSmokeTestShardName = 'smoke_tests ' ;
140
+ const String kTestHarnessShardName = 'test_harness_tests ' ;
141
141
const List <String > _kAllBuildModes = < String > ['debug' , 'profile' , 'release' ];
142
142
143
143
// The seed used to shuffle tests. If not passed with
@@ -171,7 +171,6 @@ Future<void> main(List<String> args) async {
171
171
try {
172
172
flutterTestArgs.addAll (args);
173
173
final Set <String > removeArgs = < String > {};
174
- bool runSmokeTests = true ;
175
174
for (final String arg in args) {
176
175
if (arg.startsWith ('--local-engine=' )) {
177
176
localEngineEnv['FLUTTER_LOCAL_ENGINE' ] = arg.substring ('--local-engine=' .length);
@@ -184,18 +183,14 @@ Future<void> main(List<String> args) async {
184
183
removeArgs.add (arg);
185
184
}
186
185
if (arg == '--no-smoke-tests' ) {
187
- runSmokeTests = false ;
186
+ // This flag is deprecated, ignore it.
188
187
removeArgs.add (arg);
189
188
}
190
189
}
191
190
flutterTestArgs.removeWhere ((String arg) => removeArgs.contains (arg));
192
191
if (Platform .environment.containsKey (CIRRUS_TASK_NAME ))
193
192
print ('Running task: ${Platform .environment [CIRRUS_TASK_NAME ]}' );
194
193
print ('═' * 80 );
195
- if (runSmokeTests) {
196
- await _runSmokeTests ();
197
- }
198
- print ('═' * 80 );
199
194
await selectShard (< String , ShardRunner > {
200
195
'add_to_app_life_cycle_tests' : _runAddToAppLifeCycleTests,
201
196
'build_tests' : _runBuildTests,
@@ -213,7 +208,7 @@ Future<void> main(List<String> args) async {
213
208
'web_long_running_tests' : _runWebLongRunningTests,
214
209
'flutter_plugins' : _runFlutterPluginsTests,
215
210
'skp_generator' : _runSkpGeneratorTests,
216
- kSmokeTestShardName : () async {} , // No-op, the smoke tests already ran. Used for testing this script.
211
+ kTestHarnessShardName : _runTestHarnessTests , // Used for testing this script.
217
212
});
218
213
} on ExitException catch (error) {
219
214
error.apply ();
@@ -248,16 +243,16 @@ Future<void> _validateEngineHash() async {
248
243
}
249
244
}
250
245
251
- Future <void > _runSmokeTests () async {
252
- print ('${green }Running smoketests ...$reset ' );
246
+ Future <void > _runTestHarnessTests () async {
247
+ print ('${green }Running test harness tests ...$reset ' );
253
248
254
249
await _validateEngineHash ();
255
250
256
251
// Verify that the tests actually return failure on failure and success on
257
252
// success.
258
253
final String automatedTests = path.join (flutterRoot, 'dev' , 'automated_tests' );
259
254
260
- // We want to run the smoketests in parallel, because they each take some time
255
+ // We want to run these tests in parallel, because they each take some time
261
256
// to run (e.g. compiling), so we don't want to run them in series, especially
262
257
// on 20-core machines. However, we have a race condition, so for now...
263
258
// Race condition issue: https://github.com/flutter/flutter/issues/90026
@@ -319,11 +314,9 @@ Future<void> _runSmokeTests() async {
319
314
320
315
List <ShardRunner > testsToRun;
321
316
322
- // Smoke tests are special and run first for all test shards.
323
- // Run all smoke tests for other shards.
324
- // Only shard smoke tests when explicitly specified.
317
+ // Run all tests unless sharding is explicitly specified.
325
318
final String ? shardName = Platform .environment[kShardKey];
326
- if (shardName == kSmokeTestShardName ) {
319
+ if (shardName == kTestHarnessShardName ) {
327
320
testsToRun = _selectIndexOfTotalSubshard <ShardRunner >(tests);
328
321
} else {
329
322
testsToRun = tests;
@@ -871,6 +864,7 @@ Future<void> _runFrameworkTests() async {
871
864
872
865
Future <void > runMisc () async {
873
866
print ('${green }Running package tests$reset for directories other than packages/flutter' );
867
+ await _runTestHarnessTests ();
874
868
await runExampleTests ();
875
869
await _dartRunTest (path.join (flutterRoot, 'dev' , 'bots' ));
876
870
await _dartRunTest (path.join (flutterRoot, 'dev' , 'devicelab' ), ensurePrecompiledTool: false ); // See https://github.com/flutter/flutter/issues/86209
0 commit comments