mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user