aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-11-09 16:29:24 +0100
committerGuido Günther <agx@sigxcpu.org>2017-11-09 16:33:14 +0100
commit53c0e7c3cefb52f3b7eeb4729bf10a7aaae670aa (patch)
tree746bf588132e1e9e67dafdbccc6ca66b6c937b22 /tests
parent488ea17e0fba04fc9006084c8062c16b656fcef5 (diff)
buildpackage: Check that upstream tarballs are in export_dir in overlay mode
Checks: #879781
Diffstat (limited to 'tests')
-rw-r--r--tests/component/deb/test_buildpackage.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/component/deb/test_buildpackage.py b/tests/component/deb/test_buildpackage.py
index 9d3aab03..d068d451 100644
--- a/tests/component/deb/test_buildpackage.py
+++ b/tests/component/deb/test_buildpackage.py
@@ -199,9 +199,16 @@ class TestBuildpackage(ComponentTestBase):
'--git-no-purge',
'--git-component=foo',
'--git-export-dir=../overlay'])
+ # Check if main tarball got unpacked
ok_(os.path.exists('../overlay/hello-debhelper-2.8/configure'))
+ # Check if debian dir is there
ok_(os.path.exists('../overlay/hello-debhelper-2.8/debian/changelog'))
+ # Check if additional tarball got unpacked
ok_(os.path.exists('../overlay/hello-debhelper-2.8/foo/test1'))
+ # Check if upstream tarballs is in export_dir
+ eq_(sorted(glob.glob('../overlay/*')), ['../overlay/hello-debhelper-2.8',
+ '../overlay/hello-debhelper_2.8.orig-foo.tar.gz',
+ '../overlay/hello-debhelper_2.8.orig.tar.gz'])
@RepoFixtures.quilt30()
def test_export_wc_buildpackage(self, repo):