aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_hooks.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2014-03-02 12:06:26 +0100
committerPeter Andersson <[email protected]>2014-03-12 17:01:57 +0100
commitc9ef7945d7c1621ba6d51bb24dc1853f47e30cc5 (patch)
treecbbe0a34e88ff16934ce9cd4ffc2ac7d3d7709ed /lib/common_test/src/ct_hooks.erl
parentf56c221205f6e74f027dd74c86ba5ae1e504d318 (diff)
downloadotp-c9ef7945d7c1621ba6d51bb24dc1853f47e30cc5.tar.gz
otp-c9ef7945d7c1621ba6d51bb24dc1853f47e30cc5.tar.bz2
otp-c9ef7945d7c1621ba6d51bb24dc1853f47e30cc5.zip
Introduce group name for skipped cases in events, hooks and overview log
Diffstat (limited to 'lib/common_test/src/ct_hooks.erl')
-rw-r--r--lib/common_test/src/ct_hooks.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/common_test/src/ct_hooks.erl b/lib/common_test/src/ct_hooks.erl
index e845e9e908..fa8d36392c 100644
--- a/lib/common_test/src/ct_hooks.erl
+++ b/lib/common_test/src/ct_hooks.erl
@@ -121,11 +121,12 @@ end_tc(_Mod, TC, Config, Result, _Return) ->
call(fun call_generic/3, Result, [post_end_per_testcase, TC, Config],
'$ct_no_change').
-on_tc_skip(How, {Suite, Case, Reason}) ->
- call(fun call_cleanup/3, {How, Reason}, [on_tc_skip, Suite, Case]).
+on_tc_skip(How, {Suite, GroupName, Case, Reason}) ->
+ call(fun call_cleanup/3, {How, Reason},
+ [on_tc_skip, Suite, GroupName, Case]).
-on_tc_fail(_How, {Suite, Case, Reason}) ->
- call(fun call_cleanup/3, Reason, [on_tc_fail, Suite, Case]).
+on_tc_fail(_How, {Suite, GroupName, Case, Reason}) ->
+ call(fun call_cleanup/3, Reason, [on_tc_fail, Suite, GroupName, Case]).
%% -------------------------------------------------------------------------
%% Internal Functions
@@ -245,7 +246,7 @@ scope([post_init_per_suite, SuiteName|_]) ->
scope(init) ->
none.
-terminate_if_scope_ends(HookId, [on_tc_skip,_Suite,{end_per_group,Name}],
+terminate_if_scope_ends(HookId, [on_tc_skip,_Suite,Name,end_per_group],
Hooks) ->
terminate_if_scope_ends(HookId, [post_end_per_group, Name], Hooks);
terminate_if_scope_ends(HookId, [on_tc_skip,Suite,end_per_suite], Hooks) ->