test-69: send SIGTERM to ask systemd-nspawn to properly stop the container
authorFranck Bui <fbui@suse.com>
Thu, 8 Feb 2024 15:11:21 +0000 (16:11 +0100)
committerFranck Bui <fbui@suse.com>
Fri, 9 Feb 2024 17:07:08 +0000 (18:07 +0100)
commit14265c3360b02191975654981715584227c0650e
tree0060ed5029b358a15be30b909db1d0a8022161da
parentde39202426e2d3d4d6fb509635d2462b5ded6e9c
test-69: send SIGTERM to ask systemd-nspawn to properly stop the container

The terminate() method sends SIGHUP but this signal is not handled by
systemd-nspawn hence the process just exits leaving the container scope around
breaking futher test executions.

This patch sends SIGTERM instead which is a defined API to request
sytemd-nspawn to stop and release the container's resources properly.

Follow-up for 8a7032cfb108c6daa395686320d9361c2195860a.
test/test-shutdown.py