Index: dart/tools/test.dart |
diff --git a/dart/tools/test.dart b/dart/tools/test.dart |
index a8cd20c1f654b4c4b99f5bb251e566191db43276..278dc74f0471325468209eab4580d443b0e7b667 100755 |
--- a/dart/tools/test.dart |
+++ b/dart/tools/test.dart |
@@ -194,6 +194,11 @@ void testConfigurations(List<Map> configurations) { |
} else if (conf['compiler'] == 'none' && |
conf['runtime'] == 'vm' && |
key == 'pkgbuild') { |
+ if (!conf['use_repository_packages'] && !conf['use_public_packages']) { |
+ print("You need to use either --use-repository-packages or " |
+ "--use-public-packages with the pkgbuild test suite!"); |
+ exit(1); |
+ } |
if (!conf['use_sdk']) { |
print("Running the 'pkgbuild' test suite requires " |
"passing the '--use-sdk' to test.py"); |