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.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/component/deb/test_clone.py b/tests/component/deb/test_clone.py
index 91e0cd18..6a5b8dfd 100644
--- a/tests/component/deb/test_clone.py
+++ b/tests/component/deb/test_clone.py
@@ -57,7 +57,7 @@ class TestClone(ComponentTestBase):
self.check_hook_vars('postclone', ["GBP_GIT_DIR"])
@skipUnless(os.getenv("GBP_NETWORK_TESTS"), "network tests disabled")
- def test_clone_vcsgit(self):
+ def test_clone_vcsgit_ok(self):
"""Test that cloning from vcs-git urls works"""
dest = os.path.join(self._tmpdir,
'cloned_repo')
@@ -67,6 +67,13 @@ class TestClone(ComponentTestBase):
self._check_repo_state(cloned, 'debian/sid', ['debian/sid', 'upstream/latest'])
@skipUnless(os.getenv("GBP_NETWORK_TESTS"), "network tests disabled")
+ def test_clone_vcsgit_fail(self):
+ """Test that cloning from vcs-git urls fails as expected"""
+ ret = clone(['arg0', "vcsgit:doesnotexist"])
+ self.assertEquals(ret, 1)
+ self._check_log(-1, "gbp:error: Can't find a source package for 'doesnotexist'")
+
+ @skipUnless(os.getenv("GBP_NETWORK_TESTS"), "network tests disabled")
def test_clone_github(self):
"""Test that cloning from github urls works"""
dest = os.path.join(self._tmpdir,