summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-41.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-20 21:59:54 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-28 11:46:48 +0100
commit0ac5dbf3aee710ef4dc5040340d6c46f9112f101 (patch)
tree780d4f06ddc70379d7289f7963c4ca4faf6978cf /test/units/testsuite-41.sh
parenttest: move TEST-41-ONESHOT-RESTART setup to static files (diff)
downloadsystemd-0ac5dbf3aee710ef4dc5040340d6c46f9112f101.tar.xz
systemd-0ac5dbf3aee710ef4dc5040340d6c46f9112f101.zip
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.
Diffstat (limited to '')
-rwxr-xr-xtest/units/testsuite-41.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-41.sh b/test/units/testsuite-41.sh
index 905f32e994..e3c5f1dad6 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=