test: introduce TEST-09-REBOOT
To test stuff involving state preserved across (multiple) reboots, like journal boot IDs.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
bb83c7c633
commit
c1b129f4ad
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user