From 0ac5dbf3aee710ef4dc5040340d6c46f9112f101 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 20 Mar 2020 21:59:54 +0100 Subject: [PATCH] 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. --- test/units/testsuite-41.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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= -- 2.47.3