aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/testutils.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-11-24 00:33:54 +0100
committerGuido Günther <agx@sigxcpu.org>2012-11-24 12:20:41 +0100
commit24fdd97267ec03e0b7b94afcd5cefb56772df1e4 (patch)
tree97a80eb0439ed7cfcee2f99efc82c097c072b828 /tests/testutils.py
parent95ec21a699c5fe57824e2f216aec0c43c362b803 (diff)
Test gbp.pq.common.write_patch
Diffstat (limited to 'tests/testutils.py')
-rw-r--r--tests/testutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testutils.py b/tests/testutils.py
index af243d5b..d093e778 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -23,7 +23,7 @@ class DebianGitTestRepo(unittest.TestCase):
def tearDown(self):
shutil.rmtree(self.tmpdir)
- def add_file(self, name, content=None):
+ def add_file(self, name, content=None, msg=None):
"""
Add a single file with name I{name} and content I{content}. If
I{content} is C{none} the content of the file is undefined.
@@ -42,4 +42,4 @@ class DebianGitTestRepo(unittest.TestCase):
with file(path, 'w+') as f:
content == None or f.write(content)
self.repo.add_files(name, force=True)
- self.repo.commit_files(path, "added %s" % name)
+ self.repo.commit_files(path, msg or "added %s" % name)