Signed-off-by: Ben Elliston <bje@gnu.org>
+2016-04-13 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * lib/rsh.exp (rsh_exec): Handle regexp return status.
+
2016-04-08 Ben Elliston <bje@gnu.org>
Reported by Faraz Shahbazker.
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."]