mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
test/TEST-28: avoid race in handling of /testok
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user