Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: tools/testing/dart/test_runner.dart

Issue 8511056: Parse command-line options into a list of test configurations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/testing/dart/test_runner.dart
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
index f94515d00fdf702d342f0cf41cd70b595d96084d..f1ccc3061e62b165853f62618455b5d74199c9df 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -44,7 +44,11 @@ String getExecutableName(Map configuration) {
String getDartShellFileName(Map configuration) {
- return getBuildDir(configuration) + getExecutableName(configuration);
+ var name = getBuildDir(configuration) + getExecutableName(configuration);
+ if (!(new File(name)).existsSync()) {
+ throw "Executable '$name' does not exist";
+ }
+ return name;
}
« tools/testing/dart/test_options.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698