Added extra fail check on reboot watchdog code.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -12s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -12s
This commit is contained in:
parent
9ee68c414a
commit
040286cb27
|
@ -65,8 +65,14 @@ proc fail_after { timeout {time_unit "time"} {fail_id "fail_after"} {fail_code 2
|
|||
proc fail_after_reboot_watchdog {} {
|
||||
global fail_after_boot_timeout
|
||||
if {$fail_after_boot_timeout != 0} {
|
||||
fail_after $fail_after_boot_timeout realtime err_boot 124
|
||||
after boot "fail_after_reboot_watchdog"
|
||||
if {[catch {fail_after $fail_after_boot_timeout realtime err_boot 124} err_msg]} {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue