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 timeout 80
expect {
"finished. total time:" { return true; }
{[fF]inished. [tT]otal time:} { return true; }
eof {
puts stderr "fastboot command process died unexpectedly";
return false;
puts stderr "Fastboot command process died unexpectedly"
return false
}
timeout {
puts stderr "Loading timed out";
return false;
puts stderr "Loading timed out"
return false
}
}
}