test: introduce TEST-09-REBOOT

To test stuff involving state preserved across (multiple) reboots, like
journal boot IDs.
This commit is contained in:
Frantisek Sumsal
2023-09-27 14:50:19 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent bb83c7c633
commit c1b129f4ad
7 changed files with 143 additions and 1 deletions
+3
View File
@@ -3311,6 +3311,9 @@ test_run() {
local test_id="${1:?}"
mount_initdir
# Reset the boot counter, if present
rm -f "${initdir:?}/var/tmp/.systemd_reboot_count"
if ! get_bool "${TEST_NO_QEMU:=}"; then
if run_qemu "$test_id"; then
check_result_qemu || { echo "qemu test failed"; return 1; }