From 9e5e648073c8c6c50f750dd6dd2ef0de4bd27ff3 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 13 Nov 2024 13:18:05 +0100 Subject: [PATCH] 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. --- tool/run/load/fastboot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tool/run/load/fastboot b/tool/run/load/fastboot index f41d99379a..06114b499f 100644 --- a/tool/run/load/fastboot +++ b/tool/run/load/fastboot @@ -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 } } }