tests: hide git check warning
This commit is contained in:
parent
ee48954445
commit
8b4c9b23b3
@ -55,7 +55,8 @@ except libvirt.libvirtError:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
in_git = subprocess.check_output(
|
in_git = subprocess.check_output(
|
||||||
['git', 'rev-parse', '--show-toplevel']).strip()
|
['git', 'rev-parse', '--show-toplevel'],
|
||||||
|
stderr=open(os.devnull, 'w')).strip()
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
# git returned nonzero, we are outside git repo
|
# git returned nonzero, we are outside git repo
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user