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

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 9117010: Fix frogsh + Windows + test.dart take 2 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("test_runner"); 5 #library("test_runner");
6 6
7 #import("status_file_parser.dart"); 7 #import("status_file_parser.dart");
8 #import("test_progress.dart"); 8 #import("test_progress.dart");
9 #import("test_suite.dart"); 9 #import("test_suite.dart");
10 10
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 testCase.dynamic.compilerArguments, 236 testCase.dynamic.compilerArguments,
237 compilerExitHandler); 237 compilerExitHandler);
238 } else { 238 } else {
239 runCommand(testCase.executablePath, testCase.arguments, exitHandler); 239 runCommand(testCase.executablePath, testCase.arguments, exitHandler);
240 } 240 }
241 } 241 }
242 242
243 void runCommand(String executable, 243 void runCommand(String executable,
244 List<String> arguments, 244 List<String> arguments,
245 void exitHandler(int exitCode)) { 245 void exitHandler(int exitCode)) {
246 if (new Platform().operatingSystem() == 'windows') {
247 // Windows can't handle the first command if it is a .bat file or the like
248 // with the slashes going the other direction.
249 // TODO(efortuna): Remove this when fixed (Issue 1306).
250 executable = executable.replaceAll('/', '\\');
251 }
246 process = new Process.start(executable, arguments); 252 process = new Process.start(executable, arguments);
247 process.exitHandler = exitHandler; 253 process.exitHandler = exitHandler;
248 startTime = new Date.now(); 254 startTime = new Date.now();
249 InputStream stdoutStream = process.stdout; 255 InputStream stdoutStream = process.stdout;
250 InputStream stderrStream = process.stderr; 256 InputStream stderrStream = process.stderr;
251 StringInputStream stdoutStringStream = new StringInputStream(stdoutStream); 257 StringInputStream stdoutStringStream = new StringInputStream(stdoutStream);
252 StringInputStream stderrStringStream = new StringInputStream(stderrStream); 258 StringInputStream stderrStringStream = new StringInputStream(stderrStream);
253 stdoutStringStream.lineHandler = 259 stdoutStringStream.lineHandler =
254 makeReadHandler(stdoutStringStream, stdout); 260 makeReadHandler(stdoutStringStream, stdout);
255 stderrStringStream.lineHandler = 261 stderrStringStream.lineHandler =
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 test.displayName != 'dartc/junit_tests') { 549 test.displayName != 'dartc/junit_tests') {
544 _ensureDartcBatchRunnersStarted(test.executablePath); 550 _ensureDartcBatchRunnersStarted(test.executablePath);
545 _getDartcBatchRunnerProcess().startTest(test); 551 _getDartcBatchRunnerProcess().startTest(test);
546 } else { 552 } else {
547 new RunningProcess(test).start(); 553 new RunningProcess(test).start();
548 } 554 }
549 _numProcesses++; 555 _numProcesses++;
550 } 556 }
551 } 557 }
552 } 558 }
OLDNEW
« no previous file with comments | « frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698