aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2014-04-15 17:47:03 +0200
committerPeter Andersson <[email protected]>2014-04-16 12:13:54 +0200
commit737c230253fe35a8265b9e2f9f4d8367ca429a66 (patch)
tree824cc06be64ce4bce18675e21cf030fc8081bbdf /lib
parent129370d9015831b7b5059686de39b25a5be5f502 (diff)
downloadotp-737c230253fe35a8265b9e2f9f4d8367ca429a66.tar.gz
otp-737c230253fe35a8265b9e2f9f4d8367ca429a66.tar.bz2
otp-737c230253fe35a8265b9e2f9f4d8367ca429a66.zip
Fix problem with send printout not being tagged with connection name
Diffstat (limited to 'lib')
-rw-r--r--lib/common_test/src/ct_telnet.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_telnet.erl b/lib/common_test/src/ct_telnet.erl
index 44e910eb81..3b2652d06c 100644
--- a/lib/common_test/src/ct_telnet.erl
+++ b/lib/common_test/src/ct_telnet.erl
@@ -604,9 +604,12 @@ handle_msg({cmd,Cmd,Timeout},State) ->
end_gen_log(),
{Return,State#state{buffer=NewBuffer,prompt=Prompt}};
handle_msg({send,Cmd},State) ->
+ start_gen_log(heading(send,State#state.name)),
log(State,send,"Sending: ~p",[Cmd]),
+
debug_cont_gen_log("Throwing Buffer:",[]),
debug_log_lines(State#state.buffer),
+
case {State#state.type,State#state.prompt} of
{ts,_} ->
silent_teln_expect(State#state.name,
@@ -626,6 +629,7 @@ handle_msg({send,Cmd},State) ->
ok
end,
ct_telnet_client:send_data(State#state.teln_pid,Cmd),
+ end_gen_log(),
{ok,State#state{buffer=[],prompt=false}};
handle_msg(get_data,State) ->
start_gen_log(heading(get_data,State#state.name)),