mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
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:
committed by
Luca Boccassi
parent
0ecb372eac
commit
fc4159dd95
@@ -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