mirror of
https://github.com/systemd/systemd.git
synced 2025-03-02 12:58:35 +03:00
test: Move StateDirectory= directive into dropin
The integration-test-setup calls require StateDirectory= but some tests override the test unit used which then won't have StateDirectory= so let's move StateDirectory= into the dropin as well to avoid this issue.
This commit is contained in:
parent
84b30442d2
commit
1f17ec0ed4
@ -470,6 +470,7 @@ def main() -> None:
|
||||
[Service]
|
||||
ExecStartPre=/usr/lib/systemd/tests/testdata/integration-test-setup.sh setup
|
||||
ExecStopPost=/usr/lib/systemd/tests/testdata/integration-test-setup.sh finalize
|
||||
StateDirectory=%N
|
||||
"""
|
||||
)
|
||||
|
||||
|
@ -10,4 +10,3 @@ ExecStartPre=rm -f /failed /testok
|
||||
ExecStart=@command@
|
||||
Type=oneshot
|
||||
MemoryAccounting=@memory-accounting@
|
||||
StateDirectory=%N
|
||||
|
Loading…
x
Reference in New Issue
Block a user