| Index: test/test_pub.dart
|
| diff --git a/test/test_pub.dart b/test/test_pub.dart
|
| index b816d9f11045ca214db9e411019beaf81436fec0..381f7381b7c39695b88c25af2463cce37b19ad8f 100644
|
| --- a/test/test_pub.dart
|
| +++ b/test/test_pub.dart
|
| @@ -573,10 +573,13 @@ void _ensureSnapshot() {
|
| }
|
| }
|
|
|
| - var dartSnapshot = runProcessSync(Platform.executable, [
|
| - '--snapshot=$snapshotPath',
|
| - p.join(pubRoot, 'bin', 'pub.dart')
|
| - ]);
|
| + var args = ['--snapshot=$snapshotPath'];
|
| + if (Platform.packageRoot.isNotEmpty) {
|
| + args.add('--package-root=${Platform.packageRoot}');
|
| + }
|
| + args.add(p.join(pubRoot, 'bin', 'pub.dart'));
|
| +
|
| + var dartSnapshot = runProcessSync(Platform.executable, args);
|
| if (dartSnapshot.exitCode != 0) throw "Failed to run dart --snapshot.";
|
|
|
| writeTextFile(hashPath, hash);
|
|
|