TEST-07-PID1: Use --foreground with timeout

Otherwise the test fails if a TTY is attached to stdio.

(cherry picked from commit 9c0abfaf15)
This commit is contained in:
Daan De Meyer
2026-03-26 08:41:36 +01:00
committed by Luca Boccassi
parent 0ecb372eac
commit fc4159dd95

View File

@@ -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'