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:
Matthew Gordon 2024-03-02 19:40:43 -04:00
parent e2f6a0a995
commit 91b4d81192
1 changed files with 2 additions and 0 deletions

View File

@ -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()