Skip to content
Snippets Groups Projects
Commit 967b6a26 authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

wasm-test-runner: handle keyboard interrupt when engine is running

parent 9986a84c
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,9 @@ class vtkWebAssemblyTestRunner:
logger.error(e)
self._server_is_shutdown = True
self.exit_code = 1
except KeyboardInterrupt:
self.exit_code = 1
self._server_is_shutdown = True
else:
logger.info(f"An engine was not specified. Script may appear to hang but it is actually running a http server.")
# If a test did not send an exit code, this `join` will block. It can happen when a test is stuck.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment