aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.exp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh.exp')
-rw-r--r--lib/ssh.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssh.exp b/lib/ssh.exp
index 8273af4..5487589 100644
--- a/lib/ssh.exp
+++ b/lib/ssh.exp
@@ -186,7 +186,9 @@ proc ssh_exec { boardname program pargs inp outp } {
regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output
return [list $status "$SSH 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 "ssh_exec: status:$status text:$output" 4
if { $status == "" } {
return [list -1 "Couldn't parse $SSH output, $output."]