mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
test/TEST-28: avoid race in handling of /testok
This commit is contained in:
parent
4962ed9f33
commit
de0162a95a
@ -1,5 +1,6 @@
|
||||
[Unit]
|
||||
Description=Dependent service for percent-j specifier
|
||||
After=testsuite-28-pre.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=Wants with percent-j specifier
|
||||
Wants=specifier-j-depends-%j.service
|
||||
After=specifier-j-depends-%j.service
|
||||
After=testsuite-28-pre.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
3
test/testsuite-28.units/testsuite-28-pre.service
Normal file
3
test/testsuite-28.units/testsuite-28-pre.service
Normal file
@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=rm -f /failed /testok
|
||||
Type=oneshot
|
@ -3,8 +3,9 @@ Description=TEST-28-PERCENTJ-WANTEDBY
|
||||
# Testsuite: Ensure %j Wants directives work
|
||||
Wants=specifier-j-wants.service
|
||||
After=specifier-j-wants.service
|
||||
Requires=testsuite-28-pre.service
|
||||
After=testsuite-28-pre.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=rm -f /failed /testok
|
||||
ExecStart=true
|
||||
Type=oneshot
|
||||
|
Loading…
Reference in New Issue
Block a user