aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-11-15 08:51:45 +0100
committerSiri Hansen <[email protected]>2012-11-15 08:51:45 +0100
commitc8d19718ca8e3c2ccc947f67e4068e752b34f6d3 (patch)
treebcfeeec67a9c629670206ba5cfcb474a154bd6b7 /lib/common_test
parent55c2b0b6d55fe6a011671832b5529cb1c7b636a8 (diff)
parent3e52784d3c88050d695da1f2828df36c9a83d148 (diff)
downloadotp-c8d19718ca8e3c2ccc947f67e4068e752b34f6d3.tar.gz
otp-c8d19718ca8e3c2ccc947f67e4068e752b34f6d3.tar.bz2
otp-c8d19718ca8e3c2ccc947f67e4068e752b34f6d3.zip
Merge branch 'siri/test_server/faulty-tag-printout-for-connection-log/OTP-10571' into maint
* siri/test_server/faulty-tag-printout-for-connection-log/OTP-10571: [test_server] Recognize and ignore info_reports for ct connections
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/ct_conn_log_h.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_conn_log_h.erl b/lib/common_test/src/ct_conn_log_h.erl
index bf27238121..d7bd18606b 100644
--- a/lib/common_test/src/ct_conn_log_h.erl
+++ b/lib/common_test/src/ct_conn_log_h.erl
@@ -64,10 +64,16 @@ do_open_files([],Acc) ->
handle_event({_Type, GL, _Msg}, State) when node(GL) /= node() ->
{ok, State};
handle_event({_Type,_GL,{Pid,{ct_connection,Action,ConnName},Report}},State) ->
+ %% NOTE: if the format of this event is changed
+ %% ({ct_connection,Action,ConnName}) then remember to change
+ %% test_server_h:report_receiver as well!!!
Info = conn_info(Pid,#conn_log{name=ConnName,action=Action}),
write_report(now(),Info,Report,State),
{ok, State};
handle_event({_Type,_GL,{Pid,Info=#conn_log{},Report}},State) ->
+ %% NOTE: if the format of this event is changed
+ %% (Info=#conn_log{}) then remember to change
+ %% test_server_h:report_receiver as well!!!
write_report(now(),conn_info(Pid,Info),Report,State),
{ok, State};
handle_event({error_report,_,{Pid,_,[{ct_connection,ConnName}|R]}},State) ->