aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/doctests/test_PristineTar.py
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2019-12-17 00:10:01 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-01-21 17:36:53 +0100
commit2f1c1577e74c36d17aa9f8956e95c42018c71925 (patch)
treeb864c8b9ebe646515d1451a8d360e81a88fd394b /tests/doctests/test_PristineTar.py
parentbddd221ee61f8fca61f5a7e17ee47019862c1da7 (diff)
add option to export tarballs with upstream signature
Add option `--upstream-signatures=[on|auto|off]` to export-orig. Add option `--git-upstream-signatures=[on|auto|off]` to buildpackage. Closes: 872864
Diffstat (limited to 'tests/doctests/test_PristineTar.py')
-rw-r--r--tests/doctests/test_PristineTar.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py
index 15c614cf..dfeb7193 100644
--- a/tests/doctests/test_PristineTar.py
+++ b/tests/doctests/test_PristineTar.py
@@ -134,9 +134,18 @@ def test_pristine_has_commit():
>>> repo.pristine_tar.has_commit('upstream', '1.0')
True
>>> branch = repo.rev_parse('pristine-tar')
- >>> commit = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz')
+ >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz')
>>> branch == commit
True
+ >>> sig
+ True
+ >>> repo.pristine_tar.commit('../upstream_1.0.orig.tar.gz', 'upstream')
+ >>> branch = repo.rev_parse('pristine-tar')
+ >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz')
+ >>> branch == commit
+ True
+ >>> sig
+ False
"""