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

Unified Diff: lib/src/io.dart

Issue 1162603009: A few more fixes for testing in the repo. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 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
« no previous file with comments | « lib/src/barback/pub_package_provider.dart ('k') | test/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/io.dart
diff --git a/lib/src/io.dart b/lib/src/io.dart
index 46ae81a1cea90ae7f2315952402407bb8c8caf93..7fcfcc360b58ffa9c20a5706d75cd5ac2755be28 100644
--- a/lib/src/io.dart
+++ b/lib/src/io.dart
@@ -496,7 +496,13 @@ final bool runningFromSdk =
/// A regular expression to match the script path of a pub script running from
/// source in the Dart repo.
final _dartRepoRegExp = new RegExp(
- r"/third_party/pkg_tested/pub/(bin/pub.dart|test/.*_test\.dart)$");
+ r"/third_party/pkg_tested/pub/("
+ r"bin/pub\.dart"
+ r"|"
+ r"\.pub/pub\.test\.snapshot"
+ r"|"
+ r"test/.*_test\.dart"
+ r")$");
/// Whether pub is running from source in the Dart repo.
///
« no previous file with comments | « lib/src/barback/pub_package_provider.dart ('k') | test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698