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-02 15:03:42 -0400 |
commit | 7d65e093f22287ed40cafeeb6efb05fd7372373a (patch) | |
tree | 7c4496886c15d7f8a266dd6ec1b2cc9f5d0bb6dc | |
parent | f6af7811ddf659a5613d2e6e01e1b38aed93b3ff (diff) | |
download | buildstream-tristan/bst-1/pretty-git-refs.tar.gz |
testutils/repo/git.py: Add add_tag() methodtristan/bst-1/pretty-git-refs
-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 99b6bb384..76207718a 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): + self._run_git('tag', tag) + def add_commit(self): subprocess.call(['git', 'commit', '--allow-empty', '-m', 'Additional commit'], env=GIT_ENV, cwd=self.repo) |