Index: sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart |
diff --git a/sdk/lib/_internal/pub/test/global/run/unknown_package_test.dart b/sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart |
similarity index 54% |
copy from sdk/lib/_internal/pub/test/global/run/unknown_package_test.dart |
copy to sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart |
index e5a4bab07184a447763a5b0a93b311f84f84551a..6b840b8fb0b7d8bff2a699f2d1ae1d44422de924 100644 |
--- a/sdk/lib/_internal/pub/test/global/run/unknown_package_test.dart |
+++ b/sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart |
@@ -4,16 +4,15 @@ |
import 'package:scheduled_test/scheduled_test.dart'; |
-import '../../../lib/src/exit_codes.dart' as exit_codes; |
import '../../test_pub.dart'; |
main() { |
initConfig(); |
- integration('errors if the package is not activated', () { |
- servePackages([]); |
+ integration('fails if the Git repo does not exist', () { |
+ ensureGit(); |
- schedulePub(args: ["global", "run", "foo:bar"], |
- error: startsWith("No active package foo."), |
- exitCode: exit_codes.DATA); |
+ schedulePub(args: ["global", "activate", "-sgit", "../nope.git"], |
+ error: contains("repository '../nope.git' does not exist"), |
+ exitCode: 1); |
}); |
} |