From 3f161ba9bc43e68e5ac3dd9ef18309e6e88bee89 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 19 Apr 2021 13:01:59 +0200 Subject: test: make the test entrypoint scripts shellcheck-compliant --- test/TEST-52-HONORFIRSTSHUTDOWN/test.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test/TEST-52-HONORFIRSTSHUTDOWN/test.sh') 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 -- cgit v1.2.1