test: use SIGKILL to kill the container if necessary
TEST-69 uses a Python wrapper around the systemd-nspawn call, which on error calls the `spawn.terminate()` method. However, with no arguments it will only use SIGHUP and SIGINT signals - this might leave a stuck container around, causing fails if the test is run again. With `force=True` SIGKILL is used as well (if necessary).
This commit is contained in:
@@ -90,7 +90,7 @@ def run(args):
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
logger.info("killing child pid %d", console.pid)
|
||||
console.terminate()
|
||||
console.terminate(force=True)
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user