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

Unified Diff: tests/compiler/dart2js/memory_compiler.dart

Issue 1746743002: Use checked-in .package file for building and testing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Status fixes Created 4 years, 3 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 | « tests/compiler/dart2js/dart2js_resolver_test.dart ('k') | tests/standalone/io/addlatexhash_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/memory_compiler.dart
diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart
index baa010294389af4ef2a34322dc9cfcf823419599..28868979306b81d8b3ebd08102f09e45ab9f465d 100644
--- a/tests/compiler/dart2js/memory_compiler.dart
+++ b/tests/compiler/dart2js/memory_compiler.dart
@@ -124,6 +124,10 @@ CompilerImpl compilerFor(
packageRoot = Uri.base.resolve(Platform.packageRoot);
} else if (Platform.packageConfig != null) {
packageConfig = Uri.base.resolve(Platform.packageConfig);
+ } else {
+ // The tests are run with the base directory as the SDK root
+ // so just use the .packages file there.
+ packageConfig = Uri.base.resolve('.packages');
}
}
« no previous file with comments | « tests/compiler/dart2js/dart2js_resolver_test.dart ('k') | tests/standalone/io/addlatexhash_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698