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

Unified Diff: tools/test.dart

Issue 11029024: When only listing and not running tests, don't start the http server. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.dart
diff --git a/tools/test.dart b/tools/test.dart
index 22aca2c2de6d14af23612bf23e5effd1a7e6771f..f7115aab2237ad69b5b48442a0b0cec76284c29e 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -127,7 +127,7 @@ 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) startHttpServer('127.0.0.1', 9876);
// Start process queue.
new ProcessQueue(
@@ -136,7 +136,9 @@ main() {
startTime,
printTiming,
enqueueConfiguration,
- () => terminateHttpServer(),
+ () {
+ if (!listTests) terminateHttpServer();
+ },
verbose,
listTests);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698