]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: use SIGKILL to kill the container if necessary 25039/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 17 Oct 2022 13:00:12 +0000 (15:00 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 17 Oct 2022 13:00:12 +0000 (15:00 +0200)
commitc0c03d9ce13a5b706a33ffdd8e69fa6cad63358e
treee8db62917e3dfb02a5de8725d6546f0f0ad89cce
parente6bd46a62ce2c07f9f4ea54ce46c38c7239967e6
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).
test/test-shutdown.py