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

Unified Diff: test/global/run/nonexistent_script_test.dart

Issue 1413713010: Fix error detection for a non-existent global script. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Fix test Created 5 years, 2 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/global_packages.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/global/run/nonexistent_script_test.dart
diff --git a/test/global/run/nonexistent_script_test.dart b/test/global/run/nonexistent_script_test.dart
index db7f099c190d84bb94be921be6a95913aeeae538..845717475168ab555c04f027c3a0aa8808a3c779 100644
--- a/test/global/run/nonexistent_script_test.dart
+++ b/test/global/run/nonexistent_script_test.dart
@@ -9,12 +9,17 @@ import '../../test_pub.dart';
main() {
integration('errors if the script does not exist.', () {
- servePackages((builder) => builder.serve("foo", "1.0.0"));
+ servePackages((builder) => builder.serve("foo", "1.0.0", pubspec: {
+ // Make sure barback doesn't try to look at *all* dependencies when
+ // determining which transformers to load.
+ "dev_dependencies": {"bar": "1.0.0"}
+ }));
schedulePub(args: ["global", "activate", "foo"]);
var pub = pubRun(global: true, args: ["foo:script"]);
- pub.stderr.expect("Could not find ${p.join("bin", "script.dart")}.");
+ pub.stderr.expect(
+ "Could not find ${p.join("bin", "script.dart")} in package foo.");
pub.shouldExit(exit_codes.NO_INPUT);
});
}
« no previous file with comments | « lib/src/global_packages.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698