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

Unified Diff: tools/test.dart

Issue 11040040: Temporary fix to mac buildbot issue. We need to figure out why (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 | tools/testing/dart/http_server.dart » ('j') | 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 f7115aab2237ad69b5b48442a0b0cec76284c29e..869d879fb684e09e851a092cc7c2a60e8237fbd5 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -127,18 +127,32 @@ 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.
- if (!listTests) startHttpServer('127.0.0.1', 9876);
-
- // Start process queue.
- new ProcessQueue(
- maxProcesses,
- progressIndicator,
- startTime,
- printTiming,
- enqueueConfiguration,
- () {
- if (!listTests) terminateHttpServer();
- },
- verbose,
- listTests);
+ //
+ // TODO(ager): Simplify when mac os startHttpServer issues has
+ // been resolved.
+ if (!listTests) {
+ startHttpServer('127.0.0.1', 9876).then((_) {
+ // Start process queue.
+ new ProcessQueue(maxProcesses,
+ progressIndicator,
+ startTime,
+ printTiming,
+ enqueueConfiguration,
+ () {
+ if (!listTests) terminateHttpServer();
+ },
+ verbose,
+ listTests);
+ });
+ } else {
+ // Start process queue.
+ new ProcessQueue(maxProcesses,
+ progressIndicator,
+ startTime,
+ printTiming,
+ enqueueConfiguration,
+ () => null,
+ verbose,
+ listTests);
+ }
}
« no previous file with comments | « no previous file | tools/testing/dart/http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698