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
1 changed files with 2 additions and 2 deletions

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=