aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2016-04-11 21:55:56 +0200
committerChristophe Lyon <christophe.lyon@linaro.org>2016-04-11 21:55:56 +0200
commite960c2bc77b71d4b1436e79033b8f030181936bf (patch)
treef9ce4a76d323ecb8436690c6944c6205e8cd0fd4
parent621e25d5dd78f815c8e9e3804f0f0fa37fd06443 (diff)
rsh.exp: Handle case where the status regexp doesn't match.linaro-local/christophe-stderr-rsh
Change-Id: I745445cfe5fa9e678ec23a219b18b852963ff9c8
-rw-r--r--lib/rsh.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rsh.exp b/lib/rsh.exp
index 123f245..c5d1cfc 100644
--- a/lib/rsh.exp
+++ b/lib/rsh.exp
@@ -310,7 +310,9 @@ proc rsh_exec { boardname program pargs inp outp } {
regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output
return [list $status "$RSH to $boardname failed for $program, $output"]
}
- regexp "XYZ(\[0-9\]*)ZYX" $output junk status
+ if { [regexp "XYZ(\[0-9\]*)ZYX" $output junk status] == 0 } {
+ set status ""
+ }
verbose "rsh_exec: status:$status text:$output" 4
if { $status == "" } {
return [list -1 "Couldn't parse $RSH output, $output."]