From: Zbigniew Jędrzejewski-Szmek Date: Fri, 20 Mar 2020 20:59:54 +0000 (+0100) Subject: test/TEST-41: use a file in /tmp and reset the contents X-Git-Tag: v246-rc1~682^2~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ac5dbf3aee710ef4dc5040340d6c46f9112f101;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/units/testsuite-41.sh b/test/units/testsuite-41.sh index 905f32e994b..e3c5f1dad6c 100755 --- a/test/units/testsuite-41.sh +++ b/test/units/testsuite-41.sh @@ -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=