Chromium Code Reviews| Index: tools/test.dart |
| diff --git a/tools/test.dart b/tools/test.dart |
| index bd759fc0c2f3c14f23888e6b6d9d11d45771fefd..0b4b6c684007b1f8d3b9e591f1122b653465cf3d 100755 |
| --- a/tools/test.dart |
| +++ b/tools/test.dart |
| @@ -35,11 +35,17 @@ void exitIfLastActivity() { |
| } |
| main() { |
| + var start_time = new Date.now(); |
|
kasperl
2011/11/21 11:46:39
startTime
|
| var optionsParser = new TestOptionsParser(); |
| var configurations = optionsParser.parse(new Options().arguments); |
| if (configurations == null) return; |
| activityStarted(); |
| - var queue = new ProcessQueue(configurations[0], exitIfLastActivity); |
| + // Extract global options from first configuration. |
| + var firstConf = configurations[0]; |
| + var queue = new ProcessQueue(firstConf['tasks'], |
| + firstConf['progress'], |
| + start_time, |
| + exitIfLastActivity); |
| for (var conf in configurations) { |
| activityStarted(); |
| new StandaloneTestSuite(conf).forEachTest(queue.runTest, activityCompleted); |