Skip to content

Commit bbdce5f

Browse files
committed
tests: use environment provided ssh client
Signed-off-by: Damien Duportal <[email protected]>
1 parent aeb04ba commit bbdce5f

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

tests/libcrypto.dll

-1.58 MB
Binary file not shown.

tests/ssh.exe

-925 KB
Binary file not shown.

tests/test_helpers.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function Run-ThruSSH($container, $privateKeyVal, $cmd) {
138138
$TMP_PRIV_KEY_FILE = New-TemporaryFile
139139
Set-Content -Path $TMP_PRIV_KEY_FILE -Value "$privateKeyVal"
140140

141-
$exitCode, $stdout, $stderr = Run-Program (Join-Path $PSScriptRoot 'ssh.exe') "-v -i `"${TMP_PRIV_KEY_FILE}`" -o LogLevel=quiet -o UserKnownHostsFile=NUL -o StrictHostKeyChecking=no -l jenkins localhost -p $SSH_PORT $cmd"
141+
$exitCode, $stdout, $stderr = Run-Program 'ssh.exe' "-v -i `"${TMP_PRIV_KEY_FILE}`" -o LogLevel=quiet -o UserKnownHostsFile=NUL -o StrictHostKeyChecking=no -l jenkins localhost -p $SSH_PORT $cmd"
142142
Remove-Item -Force $TMP_PRIV_KEY_FILE
143143

144144
return $exitCode, $stdout, $stderr

0 commit comments

Comments
 (0)