aboutsummaryrefslogtreecommitdiff
path: root/tests/component/deb/test_import_dsc.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-28 19:54:25 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-28 19:54:25 +0100
commit1ac2724f50e3a4ad3d4163e771ce1a3294c22cc5 (patch)
treeddeef80600969c80c67108a99a556080b48fb4a3 /tests/component/deb/test_import_dsc.py
parent3b1b9bc6e72480e5ddeb180b1ae0e557c122fa9b (diff)
GitRepository.commit_dir: add a proper reflog entry
otherwise 'gbp import-dsc' adds reflog entries without a description.
Diffstat (limited to 'tests/component/deb/test_import_dsc.py')
-rw-r--r--tests/component/deb/test_import_dsc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/component/deb/test_import_dsc.py b/tests/component/deb/test_import_dsc.py
index a0d790c..3d9e1bc 100644
--- a/tests/component/deb/test_import_dsc.py
+++ b/tests/component/deb/test_import_dsc.py
@@ -101,6 +101,9 @@ class TestImportDsc(ComponentTestBase):
repo = ComponentTestGitRepository('hello-debhelper')
os.chdir('hello-debhelper')
assert len(repo.get_commits()) == 2
+ reflog, ret = repo._git_getoutput('reflog')
+ ok_("gbp: Import Debian patch" in reflog[1])
+ ok_("gbp: Import Upstream version 2.6" in reflog[2])
self._check_repo_state(repo, 'master', ['master', 'pristine-tar', 'upstream'])
dsc = _dsc('2.8-1')
assert import_dsc(['arg0',