summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-09-12 10:47:35 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-12-16 09:55:14 +0200
commit099a83843f4c4d3436668dd69a3d59a1f2983a1f (patch)
treef222ad9a4a1628f4c38caf3060e86ddb48985a1c /tests
parentced81483244498cd045a7522fa1a20de7391d44e (diff)
GitRepository.archive: support getting tar data as return value
Return tar data as a generator object, if the 'output' option is not defined. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_PristineTar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_PristineTar.py b/tests/test_PristineTar.py
index e837ef8..61fb9a9 100644
--- a/tests/test_PristineTar.py
+++ b/tests/test_PristineTar.py
@@ -72,7 +72,7 @@ def test_create_tarball():
>>> import gbp.deb.git
>>> repo = gbp.deb.git.DebianGitRepository(repo_dir)
- >>> repo.archive('tar', 'upstream/', '../upstream_1.0.orig.tar', 'upstream')
+ >>> repo.archive('tar', 'upstream/', '%s/../upstream_1.0.orig.tar' % repo_dir, 'upstream')
>>> gbp.command_wrappers.Command('gzip', [ '-n', '%s/../upstream_1.0.orig.tar' % repo_dir])()
"""