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

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

Issue 9320038: Move test.dart's check for missing test directories from co19 to general framework. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 months 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
« no previous file with comments | « tests/co19/test_config.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index b6eb454ae9a4976d39a81e46fde0a0263f1c0e84..8728ac7ece6760de6643cda1ed0751472c620a0b 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -224,6 +224,13 @@ class StandardTestSuite implements TestSuite {
void processDirectory() {
directoryPath = '$dartDir/$directoryPath';
Directory dir = new Directory(directoryPath);
+ if (!dir.existsSync()) {
Mads Ager (google) 2012/02/02 14:33:05 Since you really want this to be async why not use
+ print('Directory containing tests not found: $directoryPath');
+ // All paths through test enumeration must be asynchronous.
+ new Timer((ignored){ directoryListingDone(false); }, 0);
+ return;
+ }
+
dir.errorHandler = (s) {
throw s;
};
« no previous file with comments | « tests/co19/test_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698