Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #import('dart:io'); | |
| 6 | |
| 7 void runTests(String executable, String script, Iterator iterator) { | |
| 8 if (iterator.hasNext()) { | |
| 9 Process.run(executable, [script, iterator.next()]).then((result) { | |
|
ahe
2012/10/08 07:12:37
You should compare the string returned from iterat
Mads Ager (google)
2012/10/08 07:28:45
Done.
| |
| 10 Expect.equals(1, result.exitCode); | |
| 11 if (result.stdout.contains("@@@")) { | |
| 12 Expect.isTrue(result.stdout.contains("@@@STEP_FAILURE@@@")); | |
| 13 } | |
| 14 runTests(executable, script, iterator); | |
| 15 }); | |
| 16 } | |
| 17 } | |
| 18 | |
| 19 main() { | |
| 20 var scriptPath = new Path.fromNative(new Options().script); | |
| 21 var scriptDirPath = scriptPath.directoryPath; | |
| 22 var exitCodeScriptPath = | |
| 23 scriptDirPath.append('test_runner_exit_code_script.dart'); | |
| 24 var script = exitCodeScriptPath.toNativePath(); | |
| 25 var executable = new Options().executable; | |
| 26 var progressTypes = ['compact', 'color', 'line', 'verbose', | |
| 27 'status', 'buildbot']; | |
| 28 var iterator = progressTypes.iterator(); | |
| 29 runTests(executable, script, iterator); | |
| 30 } | |
| OLD | NEW |