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_to_openssh_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_to_openssh_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_to_openssh_SUITE.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index ea057ed8a5..2be75fd7f3 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -378,9 +378,8 @@ erlang_server_openssh_client_public_key_X(Config, PubKeyAlg) -> Cmd = "ssh -p " ++ integer_to_list(Port) ++ " -o UserKnownHostsFile=" ++ KnownHosts ++ " " ++ Host ++ " 1+1.", - SshPort = open_port({spawn, Cmd}, [binary, stderr_to_stdout]), - - ssh_test_lib:rcv_expected({data,<<"2\n">>}, SshPort, ?TIMEOUT), + OpenSsh = ssh_test_lib:open_port({spawn, Cmd}), + ssh_test_lib:rcv_expected({data,<<"2\n">>}, OpenSsh, ?TIMEOUT), ssh:stop_daemon(Pid). %%-------------------------------------------------------------------- |