diff options
author | Hans Nilsson <[email protected]> | 2015-12-09 15:53:22 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-12-09 15:53:22 +0100 |
commit | 683bd27d59162078248eb52d6190158f2cec5a26 (patch) | |
tree | a7765974c05b65adf02065ae7c1ce6ef44866fce /lib | |
parent | 48ed10971c7d30722ead3388208818e12b4797b5 (diff) | |
parent | 8a6a4c6f289a8326e52af52a232f6d89e63a7068 (diff) | |
download | otp-683bd27d59162078248eb52d6190158f2cec5a26.tar.gz otp-683bd27d59162078248eb52d6190158f2cec5a26.tar.bz2 otp-683bd27d59162078248eb52d6190158f2cec5a26.zip |
Merge branch 'hans/ssh/cuddle_tests' into maint
* hans/ssh/cuddle_tests:
ssh: more info from failed case
Diffstat (limited to 'lib')
-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). |