@@ -13,17 +13,22 @@ import 'test_suites.dart';
1313
1414/// Runs the given tests, printing status and exiting with failure if any of
1515/// them fails.
16- Future <void > runTests (List <String > testsToRun) async {
17- // Pre-generate the necessary common output files.
18- // TODO(stuartmorgan): Consider making this conditional on the specific
19- // tests being run, as not all of them need these files.
20- final String baseDir = p.dirname (p.dirname (Platform .script.toFilePath ()));
21- print ('# Generating platform_test/ output...' );
22- final int generateExitCode = await generateTestPigeons (baseDir: baseDir);
23- if (generateExitCode == 0 ) {
24- print ('Generation complete!' );
25- } else {
26- print ('Generation failed; see above for errors.' );
16+ Future <void > runTests (
17+ List <String > testsToRun, {
18+ bool runGeneration = true ,
19+ }) async {
20+ if (runGeneration) {
21+ // Pre-generate the necessary common output files.
22+ // TODO(stuartmorgan): Consider making this conditional on the specific
23+ // tests being run, as not all of them need these files.
24+ final String baseDir = p.dirname (p.dirname (Platform .script.toFilePath ()));
25+ print ('# Generating platform_test/ output...' );
26+ final int generateExitCode = await generateTestPigeons (baseDir: baseDir);
27+ if (generateExitCode == 0 ) {
28+ print ('Generation complete!' );
29+ } else {
30+ print ('Generation failed; see above for errors.' );
31+ }
2732 }
2833
2934 for (final String test in testsToRun) {
0 commit comments