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

Unified Diff: tests/gclient_smoketest.py

Issue 250523004: Added remote 'git' branch awareness to 'gclient' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 8 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
« gclient_scm.py ('K') | « tests/gclient_scm_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_smoketest.py
diff --git a/tests/gclient_smoketest.py b/tests/gclient_smoketest.py
index bf06e22b30164e41da81d54305aebf48ec447816..6ee3fdb8617886bd4737df5563659023f6db33c4 100755
--- a/tests/gclient_smoketest.py
+++ b/tests/gclient_smoketest.py
@@ -28,7 +28,6 @@ import subprocess2
GCLIENT_PATH = os.path.join(ROOT_DIR, 'gclient')
COVERAGE = False
-
class GClientSmokeBase(FakeReposTestBase):
def setUp(self):
super(GClientSmokeBase, self).setUp()
@@ -1073,6 +1072,26 @@ class GClientSmokeGIT(GClientSmokeBase):
})
self.check((out, '', 0), results)
+ def testNonstandardRemoteRef(self):
+ if not self.enabled:
+ return
+ # Very Gerrit-y
+ self.gclient(['config', self.git_base + 'repo_6@refs/changes/12/1',
+ '--name', 'src'])
+ self.gclient(['sync', '--deps', 'mac'])
+ results = self.gclient(['revinfo', '--deps', 'mac'])
+ out = ('src: %(base)srepo_6@refs/changes/12/1\n' %
+ {
+ 'base': self.git_base,
+ })
+ self.check((out, '', 0), results)
+ results = self.gclient(['revinfo', '--deps', 'mac', '--actual'])
+ out = ('src: %(base)srepo_6@%(hash6)s\n' %
+ {
+ 'base': self.git_base,
+ 'hash6': self.githash('repo_6', 2),
+ })
+ self.check((out, '', 0), results)
class GClientSmokeGITMutates(GClientSmokeBase):
"""testRevertAndStatus mutates the git repo so move it to its own suite."""
« gclient_scm.py ('K') | « tests/gclient_scm_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698