From: Daan De Meyer Date: Thu, 26 Mar 2026 07:41:36 +0000 (+0100) Subject: TEST-07-PID1: Use --foreground with timeout X-Git-Tag: v260.2~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc4159dd95fbc99f5b0caefe468bd8639112a034;p=thirdparty%2Fsystemd.git TEST-07-PID1: Use --foreground with timeout Otherwise the test fails if a TTY is attached to stdio. (cherry picked from commit 9c0abfaf15c1494b8ed3c874342979c56f14e282) --- diff --git a/test/units/TEST-07-PID1.subgroup-kill.sh b/test/units/TEST-07-PID1.subgroup-kill.sh index c8eb6539abb..274e495af45 100755 --- a/test/units/TEST-07-PID1.subgroup-kill.sh +++ b/test/units/TEST-07-PID1.subgroup-kill.sh @@ -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'