| 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."""
|
|
|