tool/run: multiple attempt for AMT SOL connection

Some devices do not answer connection attempts timely, which leads
amtterm to time out (after 60s). Using multiple attempts in 500 ms
intervals results in timely connection and complete boot logs.

Issue #4429
This commit is contained in:
Christian Helmuth 2022-03-16 17:03:28 +01:00
parent c1c94d37d7
commit 7f0403c8c1

View File

@ -86,8 +86,12 @@ proc run_log { wait_for_re timeout_value } {
}
set exit_result 1
spawn /bin/sh -c "$amt_cmd"
set output_spawn_id $spawn_id
lassign [retry 30 "/bin/sh -c \"$amt_cmd\"" ".*session authentication" 0.5] retry_output output_spawn_id
if {$retry_output == ""} {
puts stderr "Aborting, AMT SOL not accessible"
return false
}
set kernel_msg [run_boot_string]