aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/component/deb/test_clone.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/component/deb/test_clone.py')
-rw-r--r--tests/component/deb/test_clone.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/component/deb/test_clone.py b/tests/component/deb/test_clone.py
index a0678df4..ada301cb 100644
--- a/tests/component/deb/test_clone.py
+++ b/tests/component/deb/test_clone.py
@@ -61,10 +61,12 @@ class TestClone(ComponentTestBase):
"""Test that cloning from vcs-git urls works"""
dest = os.path.join(self._tmpdir,
'cloned_repo')
- ret = clone(['arg0', "vcsgit:libvirt-glib", dest])
+ ret = clone(['arg0', "--add-upstream-vcs", "vcsgit:libvirt-glib", dest])
self.assertEquals(ret, 0)
cloned = ComponentTestGitRepository(dest)
self._check_repo_state(cloned, 'debian/sid', ['debian/sid', 'upstream/latest'])
+ assert cloned.has_remote_repo("upstreamvcs")
+ assert 'upstreamvcs/master' in cloned.get_remote_branches()
@skipUnless(os.getenv("GBP_NETWORK_TESTS"), "network tests disabled")
def test_clone_vcsgit_fail(self):