diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-11-03 09:19:55 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-11-08 21:13:58 +0100 |
commit | 1b5a344581e964434bb9b6918a166d2eb38059f4 (patch) | |
tree | 15eb0e91f9f703bda79f5039ece710fe5afe237f /tests | |
parent | cb122dd205eeaa01f52fc862d53648a1d3196beb (diff) |
buildpackage: Add back --git-pristine-tar-commit support
The call got lost when we split out export-orig.
Closes: #880624
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component/deb/test_buildpackage.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/component/deb/test_buildpackage.py b/tests/component/deb/test_buildpackage.py index c2dec9b9..3c42032c 100644 --- a/tests/component/deb/test_buildpackage.py +++ b/tests/component/deb/test_buildpackage.py @@ -143,6 +143,18 @@ class TestBuildpackage(ComponentTestBase): self.assertTrue(os.path.exists(t), "Tarball %s not found" % t) @RepoFixtures.quilt30() + def test_pristine_tar_commit(self, repo): + """Test that committing to pristine-tar branch after building tarballs works""" + assert_false(repo.has_branch('pristine-tar'), "Pristine-tar branch must not exist") + ret = buildpackage(['arg0', + '--git-builder=/bin/true', + '--git-pristine-tar-commit']) + ok_(ret == 0, "Building the package failed") + assert_true(repo.has_branch('pristine-tar'), "Pristine-tar branch must exist") + eq_(repo.ls_tree('pristine-tar'), {b'hello-debhelper_2.8.orig.tar.gz.id', + b'hello-debhelper_2.8.orig.tar.gz.delta'}) + + @RepoFixtures.quilt30() def test_sloppy_tarball_generation(self, repo): """Test that generating tarball from Debian branch works""" tarball = '../hello-debhelper_2.8.orig.tar.gz' |