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

Side by Side 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, 1 month 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 unified diff | Download patch
« no previous file with comments | « lib/src/global_packages.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:path/path.dart' as p; 5 import 'package:path/path.dart' as p;
6 import 'package:pub/src/exit_codes.dart' as exit_codes; 6 import 'package:pub/src/exit_codes.dart' as exit_codes;
7 7
8 import '../../test_pub.dart'; 8 import '../../test_pub.dart';
9 9
10 main() { 10 main() {
11 integration('errors if the script does not exist.', () { 11 integration('errors if the script does not exist.', () {
12 servePackages((builder) => builder.serve("foo", "1.0.0")); 12 servePackages((builder) => builder.serve("foo", "1.0.0", pubspec: {
13 // Make sure barback doesn't try to look at *all* dependencies when
14 // determining which transformers to load.
15 "dev_dependencies": {"bar": "1.0.0"}
16 }));
13 17
14 schedulePub(args: ["global", "activate", "foo"]); 18 schedulePub(args: ["global", "activate", "foo"]);
15 19
16 var pub = pubRun(global: true, args: ["foo:script"]); 20 var pub = pubRun(global: true, args: ["foo:script"]);
17 pub.stderr.expect("Could not find ${p.join("bin", "script.dart")}."); 21 pub.stderr.expect(
22 "Could not find ${p.join("bin", "script.dart")} in package foo.");
18 pub.shouldExit(exit_codes.NO_INPUT); 23 pub.shouldExit(exit_codes.NO_INPUT);
19 }); 24 });
20 } 25 }
OLDNEW
« 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