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

Otherwise the test fails if a TTY is attached to stdio.
This commit is contained in:
Daan De Meyer
2026-04-14 20:35:24 +02:00
committed by Daan De Meyer
parent e7d1030d77
commit 9c0abfaf15
+1 -1
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'