tests: hide git output when checking local checkout

This commit is contained in:
Marek Marczykowski-Górecki 2020-01-27 05:40:59 +01:00
parent 534de9bc1c
commit 3f5fb0de9e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -105,7 +105,8 @@ else:
try:
in_git = subprocess.check_output(
['git', 'rev-parse', '--show-toplevel']).decode().strip()
['git', 'rev-parse', '--show-toplevel'], stderr=subprocess.DEVNULL
).decode().strip()
qubes.log.LOGPATH = '/tmp'
qubes.log.LOGFILE = '/tmp/qubes.log'
except subprocess.CalledProcessError: