From 79a93bb7f52ce71b9d5027e640f59c0f08fbbbcc Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 5 Nov 2025 18:12:39 +0100 Subject: [PATCH] test: terminate the test containers cleanly on SIGTERM So they exit with 0 instead of 143 when we call `machinectl terminate` on them. --- test/units/TEST-13-NSPAWN.machined.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/units/TEST-13-NSPAWN.machined.sh b/test/units/TEST-13-NSPAWN.machined.sh index add54288289..8c7087c55d9 100755 --- a/test/units/TEST-13-NSPAWN.machined.sh +++ b/test/units/TEST-13-NSPAWN.machined.sh @@ -48,6 +48,7 @@ trap 'touch /terminate; kill 0' RTMIN+3 trap 'touch /poweroff' RTMIN+4 trap 'touch /reboot' INT trap 'touch /trap' TRAP +trap 'exit 0' TERM trap 'kill $PID' EXIT # We need to wait for the sleep process asynchronously in order to allow @@ -325,6 +326,7 @@ ip address add 192.0.2.1/24 dev hoge PID=0 trap 'kill 0' RTMIN+3 +trap 'exit 0' TERM trap 'kill $PID' EXIT # We need to wait for the sleep process asynchronously in order to allow -- 2.47.3