Commit 5a031e7e authored by Terence Lee's avatar Terence Lee

ensure test runs are cleaned up even if test fails

* container stopped
* file handles closed
parent 12b7df5b
...@@ -59,16 +59,17 @@ class AppRunner ...@@ -59,16 +59,17 @@ class AppRunner
} }
retn = run_thread.value retn = run_thread.value
@container.stop
container_thread.join
io_stream.close_write
@run = false
if capture_io if capture_io
[retn, io_stream] [retn, io_stream]
else else
retn retn
end end
ensure
@container.stop
container_thread.join
io_stream.close_write
@run = false
end end
def get(path, capture_io = false, max_retries = 30) def get(path, capture_io = false, max_retries = 30)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment