mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
Previously, we have checked journal after TEST-XX-YYYYY.sh, but it was forgotten when we switched to mkosi. This re-enable the check but through ExecStartPost=, and drops unnecessary workarounds for end.service. Then, this drops unnecessary end.service and testsuite.target.
17 lines
409 B
SYSTEMD
17 lines
409 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Unit]
|
|
Description=%N
|
|
Wants=basic.target network.target @wants@
|
|
After=basic.target network.target @after@
|
|
@unit@
|
|
|
|
[Service]
|
|
ExecStartPre=rm -f /failed /testok
|
|
ExecStart=@command@
|
|
ExecStartPost=/usr/lib/systemd/tests/testdata/units/post.sh
|
|
Type=oneshot
|
|
MemoryAccounting=@memory-accounting@
|
|
Environment=SYSTEMD_PAGER= @env@
|
|
UnsetEnvironment=JOURNAL_STREAM
|
|
@service@
|