mirror of
https://github.com/systemd/systemd
synced 2024-09-06 00:41:36 +00:00
test/TEST-41: use a file in /tmp and reset the contents
If the test was run a second time from the same root, it would fail.
This commit is contained in:
parent
2b2eefee06
commit
0ac5dbf3ae
|
@ -19,9 +19,9 @@ if [[ "$(systemctl show one.service -p NRestarts --value)" -le 0 ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
TMP_FILE="/test-41-oneshot-restart-test"
|
||||
TMP_FILE="/tmp/test-41-oneshot-restart-test"
|
||||
|
||||
touch $TMP_FILE
|
||||
: >$TMP_FILE
|
||||
|
||||
# test two: make sure StartLimitBurst correctly limits the number of restarts
|
||||
# and restarts execution of the unit from the first ExecStart=
|
||||
|
|
Loading…
Reference in a new issue