Index: sdk/lib/_internal/pub_generated/test/global/activate/missing_git_repo_test.dart |
diff --git a/sdk/lib/_internal/pub_generated/test/global/activate/missing_git_repo_test.dart b/sdk/lib/_internal/pub_generated/test/global/activate/missing_git_repo_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4799c3a265619f509e7200f0183a4006ae471b2b |
--- /dev/null |
+++ b/sdk/lib/_internal/pub_generated/test/global/activate/missing_git_repo_test.dart |
@@ -0,0 +1,12 @@ |
+import 'package:scheduled_test/scheduled_test.dart'; |
+import '../../test_pub.dart'; |
+main() { |
+ initConfig(); |
+ integration('fails if the Git repo does not exist', () { |
+ ensureGit(); |
+ schedulePub( |
+ args: ["global", "activate", "-sgit", "../nope.git"], |
+ error: contains("repository '../nope.git' does not exist"), |
+ exitCode: 1); |
+ }); |
+} |