aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2016-04-13 08:17:12 +1000
committerBen Elliston <bje@gnu.org>2016-04-13 08:17:12 +1000
commit0fbf12645b1bd7795f8c03dfbf59060e2f0e1669 (patch)
tree31f2e5f676b63b6cfd055c274947108ca5259aa7
parentedc6bd72d9c74230cf4336db3ca57b5596729d61 (diff)
downloaddejagnu-0fbf12645b1bd7795f8c03dfbf59060e2f0e1669.zip
dejagnu-0fbf12645b1bd7795f8c03dfbf59060e2f0e1669.tar.gz
dejagnu-0fbf12645b1bd7795f8c03dfbf59060e2f0e1669.tar.bz2
* lib/rsh.exp (rsh_exec): Handle regexp return status.
Signed-off-by: Ben Elliston <bje@gnu.org>
-rw-r--r--ChangeLog4
-rw-r--r--lib/rsh.exp4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f0e09ee..2e8070a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
diff --git a/lib/rsh.exp b/lib/rsh.exp
index 0e3eb07..6446db2 100644
--- a/lib/rsh.exp
+++ b/lib/rsh.exp
@@ -276,7 +276,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."]