Finally have remote_open with SSH working with the following changes (diff -U 2):

--- rsh.exp     2009-01-22 17:10:37.000000000 -0700
+++ /usr/share/dejagnu/rsh.exp  2009-01-23 14:58:30.000000000 -0700
@@ -22,4 +22,5 @@
 proc rsh_open { hostname } {
     global spawn_id
+    global board_info

     set tries 0
@@ -37,5 +38,5 @@

     if {[board_info $hostname exists username]} {
-       set rsh_useropts "-l [board_info $hostname username]"
+       set rsh_useropts "-l[board_info $hostname username]"
     } else {
        set rsh_useropts ""
@@ -46,5 +47,5 @@
        set hostname [board_info $hostname name]
     }
-    set hostname [lindex [split [board_info ${hostname} netport] ":"] 0]
+    set nethostname [lindex [split [board_info ${hostname} netport] ":"] 0]
     if {[board_info ${hostname} exists shell_prompt]} {
        set shell_prompt [board_info ${hostname} shell_prompt]
@@ -52,10 +53,9 @@
        set shell_prompt ".*> "
     }
-
     if {[board_info $hostname exists fileid]} {
        unset board_info($hostname,fileid)
     }

-    spawn $RSH $rsh_useropts $hostname
+    spawn $RSH $rsh_useropts $nethostname
     if { $spawn_id < 0 } {
        perror "invalid spawn id from $RSH"




_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
http://lists.gnu.org/mailman/listinfo/dejagnu

Reply via email to