diff options
author | Hans Nilsson <[email protected]> | 2015-12-08 16:25:18 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-12-08 16:25:18 +0100 |
commit | 8a6a4c6f289a8326e52af52a232f6d89e63a7068 (patch) | |
tree | bafcf86b5811a48abc7c1e79f08856dfa4bffa84 /lib/ssh/test/ssh_to_openssh_SUITE.erl | |
parent | 45c940463b7fc16d81d023013c21eac36cd57939 (diff) | |
download | otp-8a6a4c6f289a8326e52af52a232f6d89e63a7068.tar.gz otp-8a6a4c6f289a8326e52af52a232f6d89e63a7068.tar.bz2 otp-8a6a4c6f289a8326e52af52a232f6d89e63a7068.zip |
ssh: more info from failed case
Diffstat (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_to_openssh_SUITE.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index 18690d8669..02cc79e4d5 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -366,13 +366,17 @@ erlang_server_openssh_client_public_key_dsa(Config) when is_list(Config) -> Cmd = "ssh -p " ++ integer_to_list(Port) ++ " -o UserKnownHostsFile=" ++ KnownHosts ++ " " ++ Host ++ " 1+1.", - SshPort = open_port({spawn, Cmd}, [binary]), + SshPort = open_port({spawn, Cmd}, [binary, stderr_to_stdout]), receive {SshPort,{data, <<"2\n">>}} -> ok after ?TIMEOUT -> - ct:fail("Did not receive answer") + receive + X -> ct:fail("Received: ~p",[X]) + after 0 -> + ct:fail("Did not receive answer") + end end, ssh:stop_daemon(Pid). |