aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-02-07 18:25:02 +0200
committerGuido G√ľnther <agx@sigxcpu.org>2012-02-12 17:50:57 +0100
commit24e772577b071cb4297a5ed4b807aab334027144 (patch)
treeac684c659a4a052547f2cdf26c5567b3a14044d3
parent0c6bd5f4b6c4f5cad29cc99c9aa4034c9d7ecdf7 (diff)
Make pristine_tar testcases pass with older git versions
that don't support user-defined output formats (tar filters) in git-archive.
-rw-r--r--tests/test_PristineTar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_PristineTar.py b/tests/test_PristineTar.py
index cfe51de..f7eb588 100644
--- a/tests/test_PristineTar.py
+++ b/tests/test_PristineTar.py
@@ -71,7 +71,8 @@ def test_create_tarball():
>>> import gbp.deb.git
>>> repo = gbp.deb.git.DebianGitRepository(repo_dir)
- >>> repo.archive('tar.gz', 'upstream/', '../upstream_1.0.orig.tar.gz', 'upstream')
+ >>> repo.archive('tar', 'upstream/', '../upstream_1.0.orig.tar', 'upstream')
+ >>> gbp.command_wrappers.Command('gzip', [ '-n', '%s/../upstream_1.0.orig.tar' % repo_dir])()
"""
def test_pristine_tar_commit():