test/TEST-28: avoid race in handling of /testok
This commit is contained in:
parent
4962ed9f33
commit
de0162a95a
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Dependent service for percent-j specifier
|
Description=Dependent service for percent-j specifier
|
||||||
|
After=testsuite-28-pre.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Description=Wants with percent-j specifier
|
Description=Wants with percent-j specifier
|
||||||
Wants=specifier-j-depends-%j.service
|
Wants=specifier-j-depends-%j.service
|
||||||
After=specifier-j-depends-%j.service
|
After=specifier-j-depends-%j.service
|
||||||
|
After=testsuite-28-pre.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
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
|
# Testsuite: Ensure %j Wants directives work
|
||||||
Wants=specifier-j-wants.service
|
Wants=specifier-j-wants.service
|
||||||
After=specifier-j-wants.service
|
After=specifier-j-wants.service
|
||||||
|
Requires=testsuite-28-pre.service
|
||||||
|
After=testsuite-28-pre.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=true
|
ExecStart=true
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
Loading…
Reference in a new issue