mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
bugfix: clean up failed dockerized tests
We need to put those tickets back in the semaphore, otherwise the remaining tests never get executed. doh
This commit is contained in:
parent
c713a0af87
commit
6cc2575170
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ class DockerRunner
|
|||
res = block.call(name, container)
|
||||
# special rescue block to handle not implemented error
|
||||
rescue NotImplementedError => err
|
||||
raise err.message
|
||||
stop_container(container)
|
||||
raise err.message + "\n" + err.backtrace.join("\n")
|
||||
rescue StandardError => err
|
||||
stop_container(container)
|
||||
raise err.message + "\n" + err.backtrace.join("\n")
|
||||
end
|
||||
# always stop the container
|
||||
stop_container(container)
|
||||
|
|
Loading…
Add table
Reference in a new issue