]> 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)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 Apr 2026 18:35:24 +0000 (20:35 +0200)
Otherwise the test fails if a TTY is attached to stdio.

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'