| Index: tools/testing/dart/test_runner.dart
|
| diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
|
| index 561a1fb92b8634d4a7daf03a4d7ec113700bd4ed..71d1335eb7083c2de912b67017f9f5050c816f32 100644
|
| --- a/tools/testing/dart/test_runner.dart
|
| +++ b/tools/testing/dart/test_runner.dart
|
| @@ -90,8 +90,8 @@ class TestCase {
|
| Expect.isTrue(specialCommand.contains('@'),
|
| "special-command must contain a '@' char");
|
| var specialCommandSplit = specialCommand.split('@');
|
| - var prefix = specialCommandSplit[0];
|
| - var suffix = specialCommandSplit[1];
|
| + var prefix = specialCommandSplit[0].trim();
|
| + var suffix = specialCommandSplit[1].trim();
|
| List<Command> newCommands = [];
|
| for (Command c in commands) {
|
| var newExecutablePath;
|
| @@ -113,7 +113,8 @@ class TestCase {
|
| });
|
| final newCommand = new Command(newExecutablePath, newArguments);
|
| newCommands.add(newCommand);
|
| - Expect.stringEquals('$prefix ${c.commandLine} $suffix',
|
| + // If there are extra spaces inside the prefix or suffix, this fails.
|
| + Expect.stringEquals('$prefix ${c.commandLine} $suffix'.trim(),
|
| newCommand.commandLine);
|
| }
|
| commands = newCommands;
|
|
|