Index: tools/testing/dart/test_runner.dart |
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart |
index 52ba4b74c375dca7cc812418c9eab04fb58dce5e..0da9883dc884eae8f51ad17c752ac856cae3dd31 100644 |
--- a/tools/testing/dart/test_runner.dart |
+++ b/tools/testing/dart/test_runner.dart |
@@ -452,11 +452,11 @@ class PubCommand extends ProcessCommand { |
final String command; |
PubCommand._(String pubCommand, String pubExecutable, |
- String pubspecYamlDirectory, String pubCacheDirectory) |
+ String pubspecYamlDirectory, String pubCacheDirectory, List<String> args) |
: super._( |
'pub_$pubCommand', |
new io.File(pubExecutable).absolute.path, |
- [pubCommand], |
+ [pubCommand]..addAll(args), |
{'PUB_CACHE': pubCacheDirectory}, |
pubspecYamlDirectory), |
command = pubCommand; |
@@ -695,9 +695,11 @@ class CommandBuilder { |
} |
Command getPubCommand(String pubCommand, String pubExecutable, |
- String pubspecYamlDirectory, String pubCacheDirectory) { |
+ String pubspecYamlDirectory, String pubCacheDirectory, |
+ {List<String> arguments: const <String>[]}) { |
var command = new PubCommand._( |
- pubCommand, pubExecutable, pubspecYamlDirectory, pubCacheDirectory); |
+ pubCommand, pubExecutable, pubspecYamlDirectory, pubCacheDirectory, |
+ arguments); |
return _getUniqueCommand(command); |
} |