1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03: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:
Zbigniew Jędrzejewski-Szmek 2020-03-20 21:59:54 +01:00
parent 2b2eefee06
commit 0ac5dbf3ae

View File

@ -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=