diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-04-19 13:01:59 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-20 10:26:43 +0200 |
commit | 3f161ba9bc43e68e5ac3dd9ef18309e6e88bee89 (patch) | |
tree | 08f9ff10b2b06341ab6f4ea97bc83817d30a4154 /test/TEST-52-HONORFIRSTSHUTDOWN | |
parent | mount-util: make umount_and_rmdir_and_freep() cleanup handler deal with NULL (diff) | |
download | systemd-3f161ba9bc43e68e5ac3dd9ef18309e6e88bee89.tar.xz systemd-3f161ba9bc43e68e5ac3dd9ef18309e6e88bee89.zip |
test: make the test entrypoint scripts shellcheck-compliant
Diffstat (limited to 'test/TEST-52-HONORFIRSTSHUTDOWN')
-rwxr-xr-x | test/TEST-52-HONORFIRSTSHUTDOWN/test.sh | 12 |
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 |