| Index: tools/testing/dart/test_runner.dart
|
| diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
|
| index ae166ac62321ae91fb14fff4e8dbccaae6f74c78..6fe4e2d720754d2e1d44ad0a6b7476afd9cbfee9 100644
|
| --- a/tools/testing/dart/test_runner.dart
|
| +++ b/tools/testing/dart/test_runner.dart
|
| @@ -32,6 +32,12 @@ class Command {
|
| String commandLine;
|
|
|
| Command(this.executable, this.arguments) {
|
| + if (Platform.operatingSystem == 'windows') {
|
| + // Windows can't handle the first command if it is a .bat file or the like
|
| + // with the slashes going the other direction.
|
| + // TODO(efortuna): Remove this when fixed (Issue 1306).
|
| + executable = executable.replaceAll('/', '\\');
|
| + }
|
| commandLine = "$executable ${Strings.join(arguments, ' ')}";
|
| }
|
|
|
| @@ -614,12 +620,6 @@ class RunningProcess {
|
|
|
| void runCommand(Command command,
|
| void exitHandler(int exitCode)) {
|
| - if (Platform.operatingSystem == 'windows') {
|
| - // Windows can't handle the first command if it is a .bat file or the like
|
| - // with the slashes going the other direction.
|
| - // TODO(efortuna): Remove this when fixed (Issue 1306).
|
| - command.executable = command.executable.replaceAll('/', '\\');
|
| - }
|
| process = Process.start(command.executable, command.arguments);
|
| process.onExit = exitHandler;
|
| process.onError = (e) {
|
|
|