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

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

Issue 10383203: Add base Version class to start support versioning in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix ==. Created 8 years, 7 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
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index e2fbfdb617cee88b1af09ac5754a3459833c64ab..0a09cf1d5d6ac172967d9b6b02c06fbcb81f1a75 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -142,10 +142,11 @@ _runScheduled(Directory parentDir, List<_ScheduledEvent> scheduled) {
Future<ProcessResult> _runPub(List<String> pubArgs, String workingDir) {
// Find a dart executable we can use to run pub. Uses the one that the
- // test infrastructure uses.
+ // test infrastructure uses. We are not using new Options.executable here
+ // because that gets confused if you invoked Dart through a shell script.
final scriptDir = new File(new Options().script).directorySync().path;
final platform = Platform.operatingSystem;
- final dartBin = new File(new Options().executable).fullPathSync();
+ final dartBin = join(scriptDir, '../../../tools/testing/bin/$platform/dart');
// Find the main pub entrypoint.
final pubPath = fs.joinPaths(scriptDir, '../../pub/pub.dart');

Powered by Google App Engine
This is Rietveld 408576698