]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
Merge pull request #19248 from keszybz/make-tests-test
[thirdparty/systemd.git] / test / TEST-52-HONORFIRSTSHUTDOWN / test.sh
1 #!/bin/bash
2 set -e
3 . $TEST_BASE_DIR/test-functions
4 TEST_REQUIRE_INSTALL_TESTS=0
5 TEST_DESCRIPTION="testing honor first shutdown"
6 #INTERACTIVE_DEBUG=1
7 TEST_NO_QEMU=1
8
9 #Using timeout because if the test fails it can loop.
10 # The reason is because the poweroff executed by end.service
11 # could turn into a reboot if the test fails.
12 NSPAWN_TIMEOUT=20
13
14 #Remove this file if it exists. this is used along with
15 # the make target "finish". Since concrete confirmaion is
16 # only found from the console during the poweroff.
17 rm -f /tmp/honorfirstshutdown.log >/dev/null
18
19 do_test "$@" 52 >/tmp/honorfirstshutdown.log