TEST-07-PID1: Use --foreground with timeout
Otherwise the test fails if a TTY is attached to stdio.
This commit is contained in:
committed by
Daan De Meyer
parent
e7d1030d77
commit
9c0abfaf15
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user