diff options
author | Michal Koutný <mkoutny@suse.com> | 2019-06-06 23:27:20 +0200 |
---|---|---|
committer | Michal Koutný <xm.koutny@gmail.com> | 2019-06-26 23:16:31 +0200 |
commit | 804cdabc31b38b840eec2b64dc8bdd9a8e660a6f (patch) | |
tree | ce1bbbb84bc92f82b9e9d025f673a3802009c234 /test/i.service | |
parent | core: Check transaction against execution cycles (diff) | |
download | systemd-804cdabc31b38b840eec2b64dc8bdd9a8e660a6f.tar.xz systemd-804cdabc31b38b840eec2b64dc8bdd9a8e660a6f.zip |
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------'
Diffstat (limited to 'test/i.service')
-rw-r--r-- | test/i.service | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/i.service b/test/i.service new file mode 100644 index 0000000000..938ea77bdf --- /dev/null +++ b/test/i.service @@ -0,0 +1,8 @@ +[Unit] +Description=I +Conflicts=a.service d.service +Wants=b.service +After=b.service + +[Service] +ExecStart=/bin/true |