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

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

Issue 1859523002: Start browsers sequentially in testing scripts, as needed. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix problems Created 4 years, 8 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_runner.dart
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
index 0fe9f188aca33f1c2957021eb9f0426c6eef8c5d..ce8eba73fe6fc51d01448cf134349f7bad870700 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -2565,25 +2565,18 @@ class CommandExecutorImpl implements CommandExecutor {
}
Future<BrowserTestRunner> _getBrowserTestRunner(String browser,
- Map configuration) {
+ Map configuration) async {
var localIp = globalConfiguration['local_ip'];
- var num_browsers = maxBrowserProcesses;
if (_browserTestRunners[configuration] == null) {
var testRunner = new BrowserTestRunner(
- configuration, localIp, browser, num_browsers);
+ configuration, localIp, browser, maxBrowserProcesses);
if (globalConfiguration['verbose']) {
testRunner.logger = DebugLogger.info;
}
_browserTestRunners[configuration] = testRunner;
- return testRunner.start().then((started) {
- if (started) {
- return testRunner;
- }
- print("Issue starting browser test runner");
- io.exit(1);
- });
+ await testRunner.start();
}
- return new Future.value(_browserTestRunners[configuration]);
+ return _browserTestRunners[configuration];
}
}
« tools/testing/dart/browser_controller.dart ('K') | « tools/testing/dart/browser_controller.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698