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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 10756011: Have Pub make use of the arg parser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add tests for non-negatable flags. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/pub/pub_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 0cccbf959dcffb4fb4e509c931141ccf18672974..0195cb015419cf17dfeb98c9279d7ab97146a4e3 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -203,11 +203,11 @@ void schedulePub([List<String> args, Pattern output, Pattern error,
return ensureDir(pathInSandbox(appPath)).chain((_) {
// TODO(rnystrom): Hack in the cache directory path. Should pass this in
// using environment var once #752 is done.
- args.add('--cachedir=${pathInSandbox(cachePath)}');
+ args.insertRange(0, 1, '--cachedir=${pathInSandbox(cachePath)}');
// TODO(rnystrom): Hack in the SDK path. Should pass this in using
// environment var once #752 is done.
- args.add('--sdkdir=${pathInSandbox(sdkPath)}');
+ args.insertRange(0, 1, '--sdkdir=${pathInSandbox(sdkPath)}');
return _runPub(args, pathInSandbox(appPath), pipeStdout: output == null,
pipeStderr: error == null);
« no previous file with comments | « utils/tests/pub/pub_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698