aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_hooks.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2016-04-06 15:09:14 +0200
committerPeter Andersson <[email protected]>2016-05-02 01:52:59 +0200
commitad00652a6552068b31703c9137cb2d9b329b2ebb (patch)
tree7e4d5557ff89a7c2c0db329843188b921192e8bc /lib/common_test/src/ct_hooks.erl
parentfea24ae8d37b33e97ef1897d0d3b6cdb2338c051 (diff)
downloadotp-ad00652a6552068b31703c9137cb2d9b329b2ebb.tar.gz
otp-ad00652a6552068b31703c9137cb2d9b329b2ebb.tar.bz2
otp-ad00652a6552068b31703c9137cb2d9b329b2ebb.zip
Fix various log related problems
Diffstat (limited to 'lib/common_test/src/ct_hooks.erl')
-rw-r--r--lib/common_test/src/ct_hooks.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_hooks.erl b/lib/common_test/src/ct_hooks.erl
index 83ad33fdd8..90f36cbdc2 100644
--- a/lib/common_test/src/ct_hooks.erl
+++ b/lib/common_test/src/ct_hooks.erl
@@ -67,6 +67,8 @@ terminate(Hooks) ->
%% tests.
-spec init_tc(Mod :: atom(),
FuncSpec :: atom() |
+ {ConfigFunc :: init_per_testcase | end_per_testcase,
+ TestCase :: atom()} |
{ConfigFunc :: init_per_group | end_per_group,
GroupName :: atom(),
Properties :: list()},
@@ -103,7 +105,9 @@ init_tc(_Mod, TC = error_in_suite, Config) ->
%% @doc Called as each test case is completed. This includes all configuration
%% tests.
-spec end_tc(Mod :: atom(),
- FuncSpec :: atom() |
+ FuncSpec :: atom() |
+ {ConfigFunc :: init_per_testcase | end_per_testcase,
+ TestCase :: atom()} |
{ConfigFunc :: init_per_group | end_per_group,
GroupName :: atom(),
Properties :: list()},