diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-10-20 18:16:07 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-12-13 12:36:41 -0500 |
commit | 08d14ee45a8e2c39bf7513396e23dc302720f4e9 (patch) | |
tree | 6f2bdeed2cd7de920600ba796f28622c22583670 /tests/testutils/repo | |
parent | 0e933ccc215ab8bc2030fc137ea80337fba180cc (diff) | |
download | buildstream-08d14ee45a8e2c39bf7513396e23dc302720f4e9.tar.gz |
Fix tests
Diffstat (limited to 'tests/testutils/repo')
-rw-r--r-- | tests/testutils/repo/git.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py index e04abcb86..c5f85ba32 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -31,6 +31,11 @@ class Git(Repo): subprocess.call(['git', 'commit', '-m', 'Initial commit'], env=GIT_ENV, cwd=self.repo) return self.latest_commit() + def add_commit(self): + subprocess.call(['git', 'commit', '--allow-empty', '-m', 'Additional commit'], + env=GIT_ENV, cwd=self.repo) + return self.latest_commit() + def add_submodule(self, subdir, url): self.submodules[subdir] = url subprocess.call(['git', 'submodule', 'add', url, subdir], env=GIT_ENV, cwd=self.repo) |