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

Unified Diff: test/test_pub.dart

Issue 1216163002: Fix tests to run in dart-lang/sdk. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: cr Created 5 years, 6 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 | « lib/src/io.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_pub.dart
diff --git a/test/test_pub.dart b/test/test_pub.dart
index 1d72496c4e953ed2736d01b807adebfecd7b77dc..03889c67ffd1c2f36ae8ea272edd62c13f1cdce0 100644
--- a/test/test_pub.dart
+++ b/test/test_pub.dart
@@ -522,8 +522,11 @@ ScheduledProcess startPub({List args, Future<String> tokenEndpoint,
var pubPath = p.absolute(p.join(pubRoot, 'bin/pub.dart'));
if (fileExists('$pubPath.snapshot')) pubPath += '.snapshot';
- var dartArgs = [pubPath, '--verbose'];
- dartArgs.addAll(args);
+ var dartArgs = [
+ '--package-root=${p.toUri(p.absolute(p.fromUri(Platform.packageRoot)))}',
+ pubPath,
+ '--verbose'
+ ]..addAll(args);
if (tokenEndpoint == null) tokenEndpoint = new Future.value();
var environmentFuture = tokenEndpoint
« no previous file with comments | « lib/src/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698