diff options
Diffstat (limited to 'tests/component/deb/test_clone.py')
-rw-r--r-- | tests/component/deb/test_clone.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/component/deb/test_clone.py b/tests/component/deb/test_clone.py index 9beea644..d1b70f51 100644 --- a/tests/component/deb/test_clone.py +++ b/tests/component/deb/test_clone.py @@ -30,9 +30,10 @@ from gbp.scripts.clone import main as clone class TestClone(ComponentTestBase): """Test cloning from a remote""" - @RepoFixtures.native + @RepoFixtures.native() def test_clone_nonempty(self, repo): """Test that cloning into an existing dir fails""" + os.chdir('..') ok_(clone(['arg0', repo.path]) == 1, "Cloning did no fail as expected") self._check_log(-2, @@ -41,7 +42,7 @@ class TestClone(ComponentTestBase): "'git-buildpackage' already exists and is not " "an empty directory.") - @RepoFixtures.native + @RepoFixtures.native() def test_clone_native(self, repo): """Test that cloning of debian native packages works""" dest = os.path.join(self._tmpdir, |