diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-06 16:14:51 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-06 16:14:51 +0200 |
commit | de99b9d5b99cb2a9b038714366884942a45d8ffc (patch) | |
tree | 08d460790ea7935b7fb48e811392b9fac815cc73 | |
parent | e2afaf40c0d1c4bfbc4032d955f6cd65a20a0cba (diff) | |
download | meson-de99b9d5b99cb2a9b038714366884942a45d8ffc.zip meson-de99b9d5b99cb2a9b038714366884942a45d8ffc.tar.gz meson-de99b9d5b99cb2a9b038714366884942a45d8ffc.tar.bz2 |
Silence git stdout messages.
-rwxr-xr-x | run_unittests.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/run_unittests.py b/run_unittests.py index 0002f6c..9fc1720 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) |