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

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

Issue 9193021: Revert "Make changes to test.dart and frogsh for Windows." (Closed) Base URL: https://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 }
252 process = new Process.start(executable, arguments); 246 process = new Process.start(executable, arguments);
253 process.exitHandler = exitHandler; 247 process.exitHandler = exitHandler;
254 startTime = new Date.now(); 248 startTime = new Date.now();
255 InputStream stdoutStream = process.stdout; 249 InputStream stdoutStream = process.stdout;
256 InputStream stderrStream = process.stderr; 250 InputStream stderrStream = process.stderr;
257 StringInputStream stdoutStringStream = new StringInputStream(stdoutStream); 251 StringInputStream stdoutStringStream = new StringInputStream(stdoutStream);
258 StringInputStream stderrStringStream = new StringInputStream(stderrStream); 252 StringInputStream stderrStringStream = new StringInputStream(stderrStream);
259 stdoutStringStream.lineHandler = 253 stdoutStringStream.lineHandler =
260 makeReadHandler(stdoutStringStream, stdout); 254 makeReadHandler(stdoutStringStream, stdout);
261 stderrStringStream.lineHandler = 255 stderrStringStream.lineHandler =
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 test.displayName != 'dartc/junit_tests') { 543 test.displayName != 'dartc/junit_tests') {
550 _ensureDartcBatchRunnersStarted(test.executablePath); 544 _ensureDartcBatchRunnersStarted(test.executablePath);
551 _getDartcBatchRunnerProcess().startTest(test); 545 _getDartcBatchRunnerProcess().startTest(test);
552 } else { 546 } else {
553 new RunningProcess(test).start(); 547 new RunningProcess(test).start();
554 } 548 }
555 _numProcesses++; 549 _numProcesses++;
556 } 550 }
557 } 551 }
558 } 552 }
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