aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-12-08 16:25:18 +0100
committerHans Nilsson <[email protected]>2015-12-08 16:25:18 +0100
commit8a6a4c6f289a8326e52af52a232f6d89e63a7068 (patch)
treebafcf86b5811a48abc7c1e79f08856dfa4bffa84
parent45c940463b7fc16d81d023013c21eac36cd57939 (diff)
downloadotp-8a6a4c6f289a8326e52af52a232f6d89e63a7068.tar.gz
otp-8a6a4c6f289a8326e52af52a232f6d89e63a7068.tar.bz2
otp-8a6a4c6f289a8326e52af52a232f6d89e63a7068.zip
ssh: more info from failed case
-rw-r--r--lib/ssh/test/ssh_to_openssh_SUITE.erl8
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).