Silence git stdout messages.

pull/2489/merge
Jussi Pakkanen 7 years ago
parent e2afaf40c0
commit de99b9d5b9
  1. 8
      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)

Loading…
Cancel
Save