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

Unified Diff: sdk/lib/_internal/pub/test/global/run/runs_git_script_test.dart

Issue 448933002: Support Git in pub global activate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise! Created 6 years, 4 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
Index: sdk/lib/_internal/pub/test/global/run/runs_git_script_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart b/sdk/lib/_internal/pub/test/global/run/runs_git_script_test.dart
similarity index 77%
copy from sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart
copy to sdk/lib/_internal/pub/test/global/run/runs_git_script_test.dart
index b8d9b2c2645215fb066761c0f5aa50988deb0542..f9c1c5c50a1b650bd9b6efe5d217deaacfb0a870 100644
--- a/sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart
+++ b/sdk/lib/_internal/pub/test/global/run/runs_git_script_test.dart
@@ -7,15 +7,17 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('runs a script in a path package', () {
- d.dir("foo", [
+ integration('runs a script in a git package', () {
+ ensureGit();
+
+ d.git('foo.git', [
d.libPubspec("foo", "1.0.0"),
d.dir("bin", [
d.file("foo.dart", "main() => print('ok');")
])
]).create();
- schedulePub(args: ["global", "activate", "--source", "path", "../foo"]);
+ schedulePub(args: ["global", "activate", "-sgit", "../foo.git"]);
var pub = pubRun(global: true, args: ["foo"]);
pub.stdout.expect("ok");

Powered by Google App Engine
This is Rietveld 408576698