diff options
Diffstat (limited to 'tests/runtests.pl')
-rw-r--r--[-rwxr-xr-x] | tests/runtests.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index f38e21e84..d074de9fa 100755..100644 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -2152,6 +2152,12 @@ sub runsshserver { if ($doesntrun{$pidfile}) { return (0,0); } + + my $sshd = find_sshd(); + if($sshd) { + ($sshdid,$sshdvernum,$sshdverstr,$sshderror) = sshversioninfo($sshd); + } + my $pid = processexists($pidfile); if($pid > 0) { stopserver($server, "$pid"); @@ -3294,8 +3300,13 @@ sub subVariables { if($file_pwd !~ /^\//) { $file_pwd = "/$file_pwd"; } + my $ssh_pwd = $posix_pwd; + if ($sshdid && $sshdid =~ /OpenSSH-Windows/) { + $ssh_pwd = $file_pwd; + } $$thing =~ s/${prefix}FILE_PWD/$file_pwd/g; + $$thing =~ s/${prefix}SSH_PWD/$ssh_pwd/g; $$thing =~ s/${prefix}SRCDIR/$srcdir/g; $$thing =~ s/${prefix}USER/$USER/g; |