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

Unified Diff: tools/test-runtime.dart

Issue 11360028: Only start http server for browser tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
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(
« tools/test.dart ('K') | « tools/test.dart ('k') | tools/testing/dart/browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698