diff options
author | Siri Hansen <[email protected]> | 2017-02-21 17:03:08 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-02-21 17:03:08 +0100 |
commit | 50cf93672b8abb21f1455d41d333481071e6194e (patch) | |
tree | 1dca1db5020b79be47c68cd188217efbb9a55c8f /lib/common_test/src/cth_conn_log.erl | |
parent | b3f2b1d0932f3087fb57c5be30c29c08f4f6244b (diff) | |
download | otp-50cf93672b8abb21f1455d41d333481071e6194e.tar.gz otp-50cf93672b8abb21f1455d41d333481071e6194e.tar.bz2 otp-50cf93672b8abb21f1455d41d333481071e6194e.zip |
[ct] Update built-in ct hooks with new Suite parameter
The Suite parameter is added to all group- and testcase hook
callbacks. This commit updates cth_conn_log and cth_log_redirect
according to this new API.
Diffstat (limited to 'lib/common_test/src/cth_conn_log.erl')
-rw-r--r-- | lib/common_test/src/cth_conn_log.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/common_test/src/cth_conn_log.erl b/lib/common_test/src/cth_conn_log.erl index 883da0da0a..ce8852b3ea 100644 --- a/lib/common_test/src/cth_conn_log.erl +++ b/lib/common_test/src/cth_conn_log.erl @@ -54,8 +54,8 @@ -include_lib("common_test/include/ct.hrl"). -export([init/2, - pre_init_per_testcase/3, - post_end_per_testcase/4]). + pre_init_per_testcase/4, + post_end_per_testcase/5]). %%---------------------------------------------------------------------- %% Exported types @@ -104,7 +104,7 @@ get_log_opts(Mod,Opts) -> Hosts = proplists:get_value(hosts,Opts,[]), {LogType,Hosts}. -pre_init_per_testcase(TestCase,Config,CthState) -> +pre_init_per_testcase(_Suite,TestCase,Config,CthState) -> Logs = lists:map( fun({ConnMod,{LogType,Hosts}}) -> @@ -158,7 +158,7 @@ pre_init_per_testcase(TestCase,Config,CthState) -> ct_util:update_testdata(?MODULE, Update, [create]), {Config,CthState}. -post_end_per_testcase(TestCase,_Config,Return,CthState) -> +post_end_per_testcase(_Suite,TestCase,_Config,Return,CthState) -> Update = fun(PrevUsers) -> case lists:delete(TestCase, PrevUsers) of |