| 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..324099027e2a5b15ee8705c2633501895da5b38f 100644
|
| --- a/tools/testing/dart/test_suite.dart
|
| +++ b/tools/testing/dart/test_suite.dart
|
| @@ -227,9 +227,17 @@ class StandardTestSuite implements TestSuite {
|
| dir.errorHandler = (s) {
|
| throw s;
|
| };
|
| - dir.fileHandler = processFile;
|
| - dir.doneHandler = directoryListingDone;
|
| - dir.list(recursive: listRecursively());
|
| + dir.existsHandler = (bool exists) {
|
| + if (!exists) {
|
| + print('Directory containing tests not found: $directoryPath');
|
| + directoryListingDone(false);
|
| + } else {
|
| + dir.fileHandler = processFile;
|
| + dir.doneHandler = directoryListingDone;
|
| + dir.list(recursive: listRecursively());
|
| + }
|
| + };
|
| + dir.exists();
|
| }
|
|
|
| void enqueueTestCaseFromTestInformation(TestInformation info) {
|
|
|