summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelen Koike <helen.koike@collabora.com>2017-03-29 21:04:47 (GMT)
committerHelen Koike <helen.koike@collabora.com>2017-03-29 21:04:47 (GMT)
commit807ebb5bdb5000349d0439dcc4d3cd25d264bfa7 (patch)
treeb8215d322b483d3c5a4f71995c46be0f8407810d
parent5bf8d281f324713d27cd0c757cc37d8fc432c5dd (diff)
downloadrcar-scripts-807ebb5bdb5000349d0439dcc4d3cd25d264bfa7.tar.gz
rcar-scripts-807ebb5bdb5000349d0439dcc4d3cd25d264bfa7.tar.xz
rcar-flash: optionally expect "Clear OK"
"Clear OK?(y/n)" doesn't show in the first flash of the board
-rwxr-xr-xrcar-flash-fw.exp7
1 files changed, 4 insertions, 3 deletions
diff --git a/rcar-flash-fw.exp b/rcar-flash-fw.exp
index 8e48ac4..26f0a3c 100755
--- a/rcar-flash-fw.exp
+++ b/rcar-flash-fw.exp
@@ -47,9 +47,10 @@ end_addr [list 0 40000 180000 1C0000 200000 640000 ]\
send -- ""
expect "*** file: "
send "$image\r"
- expect "Clear OK?(y/n)"
- send "y"
- expect ">"
+ expect {
+ "Clear OK?(y/n)" {send "y"; exp_continue}
+ ">"
+ }
}
sleep 1