mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
tests: fix TEST-03-JOBS
We have JOB UNIT TYPE STATE 1 testsuite.target start waiting 81 end.service start waiting 187 sleep.service start waiting 136 hello.service start waiting 82 testsuite.service start running 135 hello-after-sleep.target start waiting sometimes
This commit is contained in:
parent
98ca53dac2
commit
b46f4ef107
|
@ -4,9 +4,12 @@
|
||||||
# installed job.
|
# installed job.
|
||||||
|
|
||||||
systemctl start --no-block hello-after-sleep.target
|
systemctl start --no-block hello-after-sleep.target
|
||||||
# sleep is now running, hello/start is waiting. Verify that:
|
|
||||||
systemctl list-jobs > /root/list-jobs.txt
|
systemctl list-jobs > /root/list-jobs.txt
|
||||||
grep 'sleep\.service.*running' /root/list-jobs.txt || exit 1
|
while ! grep 'sleep\.service.*running' /root/list-jobs.txt; do
|
||||||
|
systemctl list-jobs > /root/list-jobs.txt
|
||||||
|
done
|
||||||
|
|
||||||
grep 'hello\.service.*waiting' /root/list-jobs.txt || exit 1
|
grep 'hello\.service.*waiting' /root/list-jobs.txt || exit 1
|
||||||
|
|
||||||
# This is supposed to finish quickly, not wait for sleep to finish.
|
# This is supposed to finish quickly, not wait for sleep to finish.
|
||||||
|
|
Loading…
Reference in a new issue