aboutsummaryrefslogtreecommitdiff
path: root/lib/remote.exp
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2004-04-03 06:05:30 +0000
committerRob Savoye <rob@welcomehome.org>2004-04-03 06:05:30 +0000
commitf3516b65299caadb7a10cba9118f34a8f319d54a (patch)
tree2b6380ce42dbef5a5c026dc0b714d66112fef5a8 /lib/remote.exp
parenteeeb4b91e509d13450e27ba9a853bfd1785b659b (diff)
downloaddejagnu-f3516b65299caadb7a10cba9118f34a8f319d54a.zip
dejagnu-f3516b65299caadb7a10cba9118f34a8f319d54a.tar.gz
dejagnu-f3516b65299caadb7a10cba9118f34a8f319d54a.tar.bz2
2004-04-02 Rob Savoye <rob@direwolf.welcomehome.org>
* configure.ac, example/Makefile.am: Add example/mathhelper. * configure, alocal.m4, example/Makefile.in: Regenerated. 2004-04-02 Joel Sherrill <joel@OARcorp.com> * example/mathhelper: New example for using the unit testing API. 2004-03-05 Daniel Jacobowitz <drow@mvista.com> * lib/remote.exp (standard_spawn): Fix rsh username support.
Diffstat (limited to 'lib/remote.exp')
-rw-r--r--lib/remote.exp15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/remote.exp b/lib/remote.exp
index b57276e..cdec0d2 100644
--- a/lib/remote.exp
+++ b/lib/remote.exp
@@ -860,19 +860,18 @@ proc standard_spawn { dest commandline } {
set RSH [board_info $dest rsh_prog]
}
- if ![board_info $dest exists username] {
- set rsh_useropts ""
- } else {
- set rsh_useropts "-l $username"
- }
-
if [board_info $dest exists hostname] {
set remote [board_info $dest hostname]
} else {
set remote $dest
}
- spawn $RSH $rsh_useropts $remote $commandline
+ if ![board_info $dest exists username] {
+ spawn $RSH $remote $commandline
+ } else {
+ spawn $RSH -l [board_info $dest username] $remote $commandline
+ }
+
set board_info($dest,fileid) $spawn_id
return $spawn_id
}
@@ -1257,6 +1256,8 @@ proc remote_expect { board timeout args } {
}
if {$code == 1} {
+ if {[info exists string]} {send_user "ERROR OCCURED: $errorInfo $errorCode $string"}
+
if { $error_sect != "" } {
set code [catch {uplevel $error_sect} string]
} else {