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

Unified Diff: tools/testing/dart/test_progress.dart

Issue 11810004: Make browser tests all run from a server instead of the local filesystem. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/testing/dart/test_progress.dart
diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart
index 203edbdd195cc33250eaef829dd273bce1f6f720..c74025e8a59461f99eb3535b5944a28786f76dff 100644
--- a/tools/testing/dart/test_progress.dart
+++ b/tools/testing/dart/test_progress.dart
@@ -8,6 +8,7 @@ import "dart:io";
import "test_runner.dart";
import "test_suite.dart";
import "status_file_parser.dart";
+import "http_server.dart" as http_server;
class ProgressIndicator {
ProgressIndicator(this._startTime, this._printTiming)
@@ -195,6 +196,16 @@ class ProgressIndicator {
output.add('stderr:');
output.add(new String.fromCharCodes(test.lastCommandOutput.stderr));
}
+ if (test is BrowserTestCase) {
+ // Additional command for rerunning the steps locally after the fact.
+ output.add('To retest, run: '
+ '${TestUtils.dartTestExecutable.toNativePath()} '
+ '${TestUtils.dartDir().toNativePath()}/tools/testing/dart/'
+ 'http_server.dart -m ${test.configuration["mode"]} '
+ '-a ${test.configuration["arch"]} '
+ '-p ${http_server.TestingServerRunner.serverList[0].port} '
+ '-c ${http_server.TestingServerRunner.serverList[1].port}');
+ }
for (Command c in test.commands) {
output.add('');
String message = (c == test.commands.last

Powered by Google App Engine
This is Rietveld 408576698