From 4d24c6be73d8c73cccd4780e819f0a5148b6f717 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Fri, 16 Dec 2011 10:03:02 +0100 Subject: Exec test case should ignore stderr messages --- lib/ssh/test/ssh_test_lib.erl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/ssh/test') diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl index 425fae22c1..0e7e49ae8b 100644 --- a/lib/ssh/test/ssh_test_lib.erl +++ b/lib/ssh/test/ssh_test_lib.erl @@ -139,12 +139,18 @@ reply(TestCase, Result) -> receive_exec_result(Msg) -> test_server:format("Expect data! ~p", [Msg]), receive + {ssh_cm,_,{data,_,1, Data}} -> + test_server:format("StdErr: ~p~n", [Data]), + receive_exec_result(Msg); Msg -> test_server:format("1: Collected data ~p", [Msg]), expected; Other -> + test_server:format("Other ~p", [Other]), {unexpected_msg, Other} end. + + receive_exec_end(ConnectionRef, ChannelId) -> Eof = {ssh_cm, ConnectionRef, {eof, ChannelId}}, ExitStatus = {ssh_cm, ConnectionRef, {exit_status, ChannelId, 0}}, -- cgit v1.2.3