aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-10-09 12:52:23 +0200
committerGuido Günther <agx@sigxcpu.org>2016-10-09 13:10:23 +0200
commit53f9f401245195d385f024f71695674fe61f6602 (patch)
treed77b2fb53abc427d1aa68d38522d3a11bc397d83
parent43beb386357cbf572f7c593644ac497a52e14cb0 (diff)
test_buildpackage_rpm: check that we fail subtarball generation correctly
-rw-r--r--tests/component/rpm/test_buildpackage_rpm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/component/rpm/test_buildpackage_rpm.py b/tests/component/rpm/test_buildpackage_rpm.py
index 388940e0..7658ff47 100644
--- a/tests/component/rpm/test_buildpackage_rpm.py
+++ b/tests/component/rpm/test_buildpackage_rpm.py
@@ -398,6 +398,9 @@ class TestGbpRpm(RpmRepoTestBase):
repo.create('gbp-test-native.repo')
eq_(mock_gbp(['--git-submodules', '--git-upstream-tree=%s' %
upstr_branch, '--git-ignore-new']), 2)
+ self._check_log(-2,
+ ".*Error generating submodules' archives: "
+ "Unable to archive [0-9a-f]+: fatal: not a tree object")
def test_option_submodules_native(self):
"""Test the --git-submodules option for native packages"""