| 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');
|
|
|