summaryrefslogtreecommitdiff
path: root/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-04-19 13:01:59 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-04-20 10:26:43 +0200
commit3f161ba9bc43e68e5ac3dd9ef18309e6e88bee89 (patch)
tree08f9ff10b2b06341ab6f4ea97bc83817d30a4154 /test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
parent4d686e6b0b12ffe9a1104ac23fee97c0de8a0730 (diff)
downloadsystemd-3f161ba9bc43e68e5ac3dd9ef18309e6e88bee89.tar.gz
test: make the test entrypoint scripts shellcheck-compliant
Diffstat (limited to 'test/TEST-52-HONORFIRSTSHUTDOWN/test.sh')
-rwxr-xr-xtest/TEST-52-HONORFIRSTSHUTDOWN/test.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh b/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
index 28b97fadb0..3bcf1b8c9e 100755
--- a/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
+++ b/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
@@ -1,18 +1,20 @@
#!/bin/bash
set -e
-. $TEST_BASE_DIR/test-functions
+
TEST_REQUIRE_INSTALL_TESTS=0
TEST_DESCRIPTION="testing honor first shutdown"
-#INTERACTIVE_DEBUG=1
TEST_NO_QEMU=1
-#Using timeout because if the test fails it can loop.
+# shellcheck source=test/test-functions
+. "${TEST_BASE_DIR:?}/test-functions"
+
+# Using timeout because if the test fails it can loop.
# The reason is because the poweroff executed by end.service
# could turn into a reboot if the test fails.
NSPAWN_TIMEOUT=20
-#Remove this file if it exists. this is used along with
-# the make target "finish". Since concrete confirmaion is
+# Remove this file if it exists. This is used along with
+# the make target "finish". Since concrete confirmation is
# only found from the console during the poweroff.
rm -f /tmp/honorfirstshutdown.log >/dev/null