summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-01 09:51:56 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-01 10:00:23 +0000
commit99e37b6df848257d46fa60ccaf699cf95922049a (patch)
tree8ca50855703b9f55eb6d25cf3288f4178289ae75
parenta2947e503c5c99386ba6e10be8f3d6b9e8a39cbb (diff)
downloadbuildstream-99e37b6df848257d46fa60ccaf699cf95922049a.tar.gz
tests/testutils/repo/git.py: Use _run_git wrapper instead of git directly
-rw-r--r--tests/testutils/repo/git.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py
index 183651180..9f617a763 100644
--- a/tests/testutils/repo/git.py
+++ b/tests/testutils/repo/git.py
@@ -61,9 +61,7 @@ class Git(Repo):
def modify_file(self, new_file, path):
shutil.copy(new_file, os.path.join(self.repo, path))
- subprocess.call([
- 'git', 'commit', path, '-m', 'Modified {}'.format(os.path.basename(path))
- ], env=GIT_ENV, cwd=self.repo)
+ self._run_git('commit', path, '-m', 'Modified {}'.format(os.path.basename(path)))
return self.latest_commit()
def add_submodule(self, subdir, url=None, checkout=None):