Chromium Code Reviews| Index: tools/test-runtime.dart |
| diff --git a/tools/test-runtime.dart b/tools/test-runtime.dart |
| index b4a229fadeba18494ebbd5d133c88cb8ee9aa6fa..8fa81f863bf9b39d464bdf0a3360db46add20448 100755 |
| --- a/tools/test-runtime.dart |
| +++ b/tools/test-runtime.dart |
| @@ -92,7 +92,14 @@ main() { |
| // Start global http server that serves the entire dart repo. |
| // The http server is available on localhost:9876 for any |
| // test that needs to load resources from the repo over http. |
| - startHttpServer('127.0.0.1', 9876); |
| + if (!listTests) { |
| + // Only start the server if we are running browser tests. |
| + var runningBrowserTests = configurations.some((config) { |
| + return TestUtils.isBrowserRuntime(config['runtime']); |
| + }); |
| + if (runningBrowserTests) startHttpServer('127.0.0.1', 9876); |
| + print(runningBrowserTests); |
|
ricow1
2012/11/01 09:48:55
debug print?
Mads Ager (google)
2012/11/01 10:12:57
Done.
|
| + } |
| // Start process queue. |
| new ProcessQueue( |