Index: sdk/lib/_internal/pub/test/test_pub.dart |
diff --git a/sdk/lib/_internal/pub/test/test_pub.dart b/sdk/lib/_internal/pub/test/test_pub.dart |
index e2a06f58e3dd07a363e28c2fbfff5d4448a68b5a..f8b5cb9ec817a1a2f5b67443f798f67649460c64 100644 |
--- a/sdk/lib/_internal/pub/test/test_pub.dart |
+++ b/sdk/lib/_internal/pub/test/test_pub.dart |
@@ -371,6 +371,7 @@ ScheduledProcess startPub({List args, Future<Uri> tokenEndpoint}) { |
options.workingDirectory = pathInSandbox(appPath); |
// TODO(nweiz): remove this when issue 9294 is fixed. |
options.environment = new Map.from(Platform.environment); |
+ options.environment['_PUB_TESTING'] = 'true'; |
options.environment['PUB_CACHE'] = pathInSandbox(cachePath); |
options.environment['DART_SDK'] = pathInSandbox(sdkPath); |
if (tokenEndpoint != null) { |