]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-07-PID1: Use --foreground with timeout
authorDaan De Meyer <daan@amutable.com>
Thu, 26 Mar 2026 07:41:36 +0000 (08:41 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 22 May 2026 12:27:50 +0000 (13:27 +0100)
Otherwise the test fails if a TTY is attached to stdio.

(cherry picked from commit 9c0abfaf15c1494b8ed3c874342979c56f14e282)

test/units/TEST-07-PID1.subgroup-kill.sh

index c8eb6539abbd8fb0948f5b63392ded8757001b84..274e495af45f477b573f94915b826c9aef90f4be 100755 (executable)
@@ -36,4 +36,4 @@ systemctl kill user@"$(id -u testuser)".service --kill-subgroup=app.slice/subgro
 run0 -u testuser systemctl --user is-active subgroup-test.service
 systemctl kill user@"$(id -u testuser)".service --kill-subgroup=app.slice/subgroup-test.service --kill-whom=cgroup-fail
 
-timeout 60 bash -c 'while run0 -u testuser systemctl --user is-active subgroup-test.service; do sleep 1; done'
+timeout --foreground 60 bash -c 'while run0 -u testuser systemctl --user is-active subgroup-test.service; do sleep 1; done'