summaryrefslogtreecommitdiff
path: root/morphlib/sysbranchdir_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/sysbranchdir_tests.py')
-rw-r--r--morphlib/sysbranchdir_tests.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/morphlib/sysbranchdir_tests.py b/morphlib/sysbranchdir_tests.py
index 8b40f69c..1aca54e6 100644
--- a/morphlib/sysbranchdir_tests.py
+++ b/morphlib/sysbranchdir_tests.py
@@ -50,16 +50,17 @@ class SystemBranchDirectoryTests(unittest.TestCase):
self.path = path
os.mkdir(self.path)
- cliapp.runcmd(['git', 'init', self.path])
+ morphlib.git.gitcmd(cliapp.runcmd, 'init', self.path)
with open(os.path.join(self.path, 'filename'), 'w') as f:
f.write('this is a file\n')
- cliapp.runcmd(['git', 'add', 'filename'], cwd=self.path)
- cliapp.runcmd(
- ['git', 'commit', '-m', 'initial'], cwd=self.path)
+ morphlib.git.gitcmd(cliapp.runcmd, 'add', 'filename',
+ cwd=self.path)
+ morphlib.git.gitcmd(cliapp.runcmd, 'commit', '-m', 'initial',
+ cwd=self.path)
def clone_checkout(self, ref, target_dir):
- cliapp.runcmd(
- ['git', 'clone', '-b', ref, self.path, target_dir])
+ morphlib.git.gitcmd(cliapp.runcmd, 'clone', '-b', ref,
+ self.path, target_dir)
subdir = tempfile.mkdtemp(dir=self.tempdir)
path = os.path.join(subdir, 'foo')