summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-06 16:14:51 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-06 16:14:51 +0200
commitde99b9d5b99cb2a9b038714366884942a45d8ffc (patch)
tree08d460790ea7935b7fb48e811392b9fac815cc73
parente2afaf40c0d1c4bfbc4032d955f6cd65a20a0cba (diff)
downloadmeson-de99b9d5b99cb2a9b038714366884942a45d8ffc.tar.gz
Silence git stdout messages.
-rwxr-xr-xrun_unittests.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 0002f6cfd..9fc1720b4 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1287,13 +1287,15 @@ class AllPlatformTests(BasePlatformTests):
raise unittest.SkipTest('Git not found')
def git_init(project_dir):
- subprocess.check_call(['git', 'init'], cwd=project_dir)
+ subprocess.check_call(['git', 'init'], cwd=project_dir, stdout=subprocess.DEVNULL)
subprocess.check_call(['git', 'config',
'user.name', 'Author Person'], cwd=project_dir)
subprocess.check_call(['git', 'config',
'user.email', 'teh_coderz@example.com'], cwd=project_dir)
- subprocess.check_call(['git', 'add', 'meson.build', 'distexe.c'], cwd=project_dir)
- subprocess.check_call(['git', 'commit', '-a', '-m', 'I am a project'], cwd=project_dir)
+ subprocess.check_call(['git', 'add', 'meson.build', 'distexe.c'], cwd=project_dir,
+ stdout=subprocess.DEVNULL)
+ subprocess.check_call(['git', 'commit', '-a', '-m', 'I am a project'], cwd=project_dir,
+ stdout=subprocess.DEVNULL)
try:
self.dist_impl(git_init)