| Index: tools/test.dart
|
| diff --git a/tools/test.dart b/tools/test.dart
|
| index 89b9d728d07df24cdcd9a7a7dc98bb0e73e76131..7b73b4fd7a70c53d6b004e78d52284281524adc1 100755
|
| --- a/tools/test.dart
|
| +++ b/tools/test.dart
|
| @@ -129,10 +129,13 @@ void testConfigurations(List<Map> configurations) {
|
| List<Future> serverFutures = [];
|
| var testSuites = new List<TestSuite>();
|
| var maxBrowserProcesses = maxProcesses;
|
| - // If the server ports are fixed, then we can only have one configuration.
|
| - assert(((configurations[0]['test_server_port'] == 0) &&
|
| - (configurations[0]['test_server_cross_origin_port'] == 0)) ||
|
| - (configurations.length == 1));
|
| + if (configurations.length > 1 &&
|
| + (configurations[0]['test_server_port'] != 0 ||
|
| + configurations[0]['test_server_cross_origin_port'] != 0)) {
|
| + print("If the http server ports are specified, only one configuration"
|
| + " may be run at a time");
|
| + exit(1);
|
| + }
|
| for (var conf in configurations) {
|
| Map<String, RegExp> selectors = conf['selectors'];
|
| var useContentSecurityPolicy = conf['csp'];
|
|
|