summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-09-23 16:54:30 +0200
committerJürg Billeter <j@bitron.ch>2018-09-27 14:12:34 +0100
commit107269c123cf65fbcdcc261a6c82ca694b0d9a4d (patch)
tree5382e7af1f085cd422e2e4ec07ea5f1c78b00f00
parent900e890069427aff929c0529f34a02d891503ace (diff)
downloadbuildstream-107269c123cf65fbcdcc261a6c82ca694b0d9a4d.tar.gz
testutils/repo/git.py: Add add_tag() method
-rw-r--r--tests/testutils/repo/git.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py
index c598eb4d0..bc2dae691 100644
--- a/tests/testutils/repo/git.py
+++ b/tests/testutils/repo/git.py
@@ -42,6 +42,9 @@ class Git(Repo):
self._run_git('commit', '-m', 'Initial commit')
return self.latest_commit()
+ def add_tag(self, tag):
+ self._run_git('tag', tag)
+
def add_commit(self):
self._run_git('commit', '--allow-empty', '-m', 'Additional commit')
return self.latest_commit()