tool/run/load/fastboot: case-insensitive match

The success messages of different versions of the fastboot tool
are printed in different upper/lower case. Tolerate both.

The patch also removes a few superfluous semicolons.
This commit is contained in:
Norman Feske 2024-11-13 13:18:05 +01:00 committed by Christian Helmuth
parent 14e3339ce6
commit 9e5e648073

View File

@ -47,14 +47,14 @@ proc run_load { } {
set load_spawn_id $spawn_id set load_spawn_id $spawn_id
set timeout 80 set timeout 80
expect { expect {
"finished. total time:" { return true; } {[fF]inished. [tT]otal time:} { return true; }
eof { eof {
puts stderr "fastboot command process died unexpectedly"; puts stderr "Fastboot command process died unexpectedly"
return false; return false
} }
timeout { timeout {
puts stderr "Loading timed out"; puts stderr "Loading timed out"
return false; return false
} }
} }
} }