Added extra fail check on reboot watchdog code.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -12s

This commit is contained in:
Willem Cazander 2024-07-13 14:10:40 +02:00
parent 9ee68c414a
commit 040286cb27

View file

@ -65,8 +65,14 @@ proc fail_after { timeout {time_unit "time"} {fail_id "fail_after"} {fail_code 2
proc fail_after_reboot_watchdog {} { proc fail_after_reboot_watchdog {} {
global fail_after_boot_timeout global fail_after_boot_timeout
if {$fail_after_boot_timeout != 0} { if {$fail_after_boot_timeout != 0} {
fail_after $fail_after_boot_timeout realtime err_boot 124 if {[catch {fail_after $fail_after_boot_timeout realtime err_boot 124} err_msg]} {
after boot "fail_after_reboot_watchdog" puts stderr "error: $err_msg"
fail_after_exit fail_after_reboot_install_error 1
}
if {[catch {after boot "fail_after_reboot_watchdog"} err_msg]} {
puts stderr "error: $err_msg"
fail_after_exit fail_after_reboot_cycle_error 1
}
} }
} }