tests: Check job ordering on execution cycles
The test-engine Test2 tests the cycle detection when units a, b and d
all start at once
,-------------------after-----------------,
v |
a/start ---after---> d/start ---after---> b/start
Extend the test with Test11 that adds i.service which causes a and d
stop (by unordered Conflicts=) while starting b. Because stops precede
starts, we effectively eliminate the job cycle and all transaction jobs
should be applicable.
,-------------------after-----------------,
v |
a/stop <---after--- d/stop <---after--- b/start
. . ^
. . |
'. . . . . . . . . i/start ---after------'
This commit is contained in:
committed by
Michal Koutný
parent
dfd79eca55
commit
804cdabc31
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=I
|
||||
Conflicts=a.service d.service
|
||||
Wants=b.service
|
||||
After=b.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/true
|
||||
@@ -26,6 +26,7 @@ test_data_files = '''
|
||||
hello-after-sleep.target
|
||||
hello.service
|
||||
hwdb/10-bad.hwdb
|
||||
i.service
|
||||
journal-data/journal-1.txt
|
||||
journal-data/journal-2.txt
|
||||
nomem.slice
|
||||
|
||||
Reference in New Issue
Block a user