diff options
author | Hans Nilsson <[email protected]> | 2016-04-13 13:19:10 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-04-29 13:17:52 +0200 |
commit | 020e62c9619b518620d216cf0caef55fe129d4c3 (patch) | |
tree | 8249e590918f2ffc6ef256b2a691be9a9b09983d /lib/ssh/test/ssh_algorithms_SUITE.erl | |
parent | 223b123f576e726c18bcd38fa2b866d23f1a14a3 (diff) | |
download | otp-020e62c9619b518620d216cf0caef55fe129d4c3.tar.gz otp-020e62c9619b518620d216cf0caef55fe129d4c3.tar.bz2 otp-020e62c9619b518620d216cf0caef55fe129d4c3.zip |
ssh: centralize and adjust port spawning for test_suites into ssh_test_lib
Diffstat (limited to 'lib/ssh/test/ssh_algorithms_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_algorithms_SUITE.erl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ssh/test/ssh_algorithms_SUITE.erl b/lib/ssh/test/ssh_algorithms_SUITE.erl index 3a8eec46a8..7965561c22 100644 --- a/lib/ssh/test/ssh_algorithms_SUITE.erl +++ b/lib/ssh/test/ssh_algorithms_SUITE.erl @@ -231,10 +231,8 @@ sshc_simple_exec(Config) -> " -o StrictHostKeyChecking=no", " ",Host," 1+1."]), ct:log("~p",[Cmd]), - SshPort = open_port({spawn, Cmd}, [binary, stderr_to_stdout, - overlapped_io %only affects windows - ]), - ssh_test_lib:rcv_expected({data,<<"2\n">>}, SshPort, ?TIMEOUT). + OpenSsh = ssh_test_lib:open_port({spawn, Cmd}, [eof,exit_status]), + ssh_test_lib:rcv_expected({data,<<"2\n">>}, OpenSsh, ?TIMEOUT). %%-------------------------------------------------------------------- %% Connect to the ssh server of the OS |