| Index: tools/testing/dart/multitest.dart
|
| diff --git a/tools/testing/dart/multitest.dart b/tools/testing/dart/multitest.dart
|
| index 34551dbc74ce9bd5cf079560f147c0db19e5f4dc..b67428505a39476926b8c12f71d3d026b4ef5301 100644
|
| --- a/tools/testing/dart/multitest.dart
|
| +++ b/tools/testing/dart/multitest.dart
|
| @@ -188,11 +188,8 @@ Set<Path> _findAllRelativeImports(Path topLibrary) {
|
| return foundImports;
|
| }
|
|
|
| -void DoMultitest(Path filePath,
|
| - String outputDir,
|
| - Path suiteDir,
|
| - CreateTest doTest,
|
| - VoidFunction multitestDone) {
|
| +Future doMultitest(Path filePath, String outputDir, Path suiteDir,
|
| + CreateTest doTest) {
|
| // Each new test is a single String value in the Map tests.
|
| Map<String, String> tests = new Map<String, String>();
|
| Map<String, Set<String>> outcomes = new Map<String, Set<String>>();
|
| @@ -217,7 +214,7 @@ void DoMultitest(Path filePath,
|
| }
|
|
|
| // Wait until all imports are copied before scheduling test cases.
|
| - Futures.wait(futureCopies).then((ignored) {
|
| + return Futures.wait(futureCopies).transform((_) {
|
| String baseFilename = filePath.filenameWithoutExtension;
|
| for (String key in tests.keys) {
|
| final Path multitestFilename =
|
| @@ -241,7 +238,8 @@ void DoMultitest(Path filePath,
|
| hasFatalTypeErrors: enableFatalTypeErrors,
|
| multitestOutcome: outcome);
|
| }
|
| - multitestDone();
|
| +
|
| + return null;
|
| });
|
| }
|
|
|
|
|