diff options
author | Jürg Billeter <j@bitron.ch> | 2018-09-23 16:54:30 +0200 |
---|---|---|
committer | Tristan van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-08-04 12:16:28 -0400 |
commit | 7fedcb4ae322d76e60584e9f0f07299ef805afb8 (patch) | |
tree | 8da8689a588d0b45a600a5666927188293619a99 | |
parent | bc26b02b4252a32f384b4ff4a15f4091bba769b7 (diff) | |
download | buildstream-7fedcb4ae322d76e60584e9f0f07299ef805afb8.tar.gz |
testutils/repo/git.py: Add add_tag() method
-rw-r--r-- | tests/testutils/repo/git.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py index 5587baacb..1adc096dd 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -33,6 +33,9 @@ class Git(Repo): subprocess.call(['git', 'commit', '-m', 'Initial commit'], env=GIT_ENV, cwd=self.repo) return self.latest_commit() + def add_tag(self, tag): + subprocess.call(['git', 'tag', tag], env=GIT_ENV, cwd=self.repo) + def add_commit(self): subprocess.call(['git', 'commit', '--allow-empty', '-m', 'Additional commit'], env=GIT_ENV, cwd=self.repo) |