summaryrefslogtreecommitdiffstats
path: root/test/test-shutdown.py
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-10-17 15:00:12 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-10-17 15:00:12 +0200
commitc0c03d9ce13a5b706a33ffdd8e69fa6cad63358e (patch)
treee8db62917e3dfb02a5de8725d6546f0f0ad89cce /test/test-shutdown.py
parenttest: drop one layer of escaping (diff)
downloadsystemd-c0c03d9ce13a5b706a33ffdd8e69fa6cad63358e.tar.xz
systemd-c0c03d9ce13a5b706a33ffdd8e69fa6cad63358e.zip
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).
Diffstat (limited to 'test/test-shutdown.py')
-rwxr-xr-xtest/test-shutdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-shutdown.py b/test/test-shutdown.py
index 52207a4656..e181f976be 100755
--- a/test/test-shutdown.py
+++ b/test/test-shutdown.py
@@ -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