diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-20 21:59:54 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-28 11:46:48 +0100 |
commit | 0ac5dbf3aee710ef4dc5040340d6c46f9112f101 (patch) | |
tree | 780d4f06ddc70379d7289f7963c4ca4faf6978cf /test/units/testsuite-41.sh | |
parent | test: move TEST-41-ONESHOT-RESTART setup to static files (diff) | |
download | systemd-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-x | test/units/testsuite-41.sh | 4 |
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= |