mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09: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:
@@ -4,9 +4,12 @@
|
||||
# installed job.
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
# This is supposed to finish quickly, not wait for sleep to finish.
|
||||
|
||||
Reference in New Issue
Block a user