Don't whow stack trace when terminating test run
Don't show a Python exception and stack trace when the user stops a test run with CTRL-C
This commit is contained in:
parent
e2f6a0a995
commit
91b4d81192
|
|
@ -27,6 +27,8 @@ def run(args):
|
||||||
try:
|
try:
|
||||||
while locality_process.poll() is None:
|
while locality_process.poll() is None:
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
finally:
|
finally:
|
||||||
if locality_process.poll() is None:
|
if locality_process.poll() is None:
|
||||||
locality_process.terminate()
|
locality_process.terminate()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue