diff --git a/test/TEST-69-SHUTDOWN/test.sh b/test/TEST-69-SHUTDOWN/test.sh index c7f78fe3c9b81..8fdbaf81fe247 100755 --- a/test/TEST-69-SHUTDOWN/test.sh +++ b/test/TEST-69-SHUTDOWN/test.sh @@ -4,7 +4,9 @@ set -e TEST_DESCRIPTION="shutdown testing" IMAGE_NAME="shutdown" -TEST_NO_QEMU=1 +TEST_NO_QEMU=yes +# Prevent shutdown in test suite, the expect script does that manually. +TEST_SKIP_SHUTDOWN=yes # shellcheck source=test/test-functions . "${TEST_BASE_DIR:?}/test-functions" @@ -23,13 +25,17 @@ EOF test_append_files() { local workspace="${1:?}" - # prevent shutdown in test suite, the expect script does that manually. - mkdir -p "${workspace:?}/etc/systemd/system/end.service.d" - cat >"$workspace/etc/systemd/system/end.service.d/99-override.conf" <"$workspace/etc/systemd/system.conf.d/99-timeout.conf" <>"$workspace/root/.bashrc" echo 'startup_message off' >"$workspace/etc/screenrc" diff --git a/test/TEST-82-SOFTREBOOT/test.sh b/test/TEST-82-SOFTREBOOT/test.sh index 101b25084269f..0494149185678 100755 --- a/test/TEST-82-SOFTREBOOT/test.sh +++ b/test/TEST-82-SOFTREBOOT/test.sh @@ -5,19 +5,10 @@ set -e TEST_DESCRIPTION="Test Soft-Rebooting" # We temporarily remount rootfs read-only, so ignore any missing coverage IGNORE_MISSING_COVERAGE=yes +# Prevent shutdown in test suite, the expect script does that manually. +TEST_SKIP_SHUTDOWN=yes # shellcheck source=test/test-functions . "$TEST_BASE_DIR/test-functions" -test_append_files() { - local workspace="${1:?}" - # prevent shutdown in test suite, the expect script does that manually. - mkdir -p "${workspace:?}/etc/systemd/system/end.service.d" - cat >"$workspace/etc/systemd/system/end.service.d/99-override.conf" <