aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_hooks.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2014-03-12 17:18:40 +0100
committerPeter Andersson <[email protected]>2014-03-12 17:19:27 +0100
commit2aca59eb432c8907ac9d316da251a513fcc33901 (patch)
tree09df30769c781d415ab12f0fa8c75163fb70ed5b /lib/common_test/src/ct_hooks.erl
parentf406a1661f8b0106b1b203057aedbb60d8d3a6be (diff)
parent0b2bc007ec8b2f393ae4888be2efe3c4f9f2b94c (diff)
downloadotp-2aca59eb432c8907ac9d316da251a513fcc33901.tar.gz
otp-2aca59eb432c8907ac9d316da251a513fcc33901.tar.bz2
otp-2aca59eb432c8907ac9d316da251a513fcc33901.zip
Merge branch 'peppe/common_test/group_events'
* peppe/common_test/group_events: Update test suites and fix various remaining problems Update event protocol and CT Hooks API Introduce group name for skipped cases in events, hooks and overview log OTP-11732
Diffstat (limited to 'lib/common_test/src/ct_hooks.erl')
-rw-r--r--lib/common_test/src/ct_hooks.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_hooks.erl b/lib/common_test/src/ct_hooks.erl
index e845e9e908..2e667030a9 100644
--- a/lib/common_test/src/ct_hooks.erl
+++ b/lib/common_test/src/ct_hooks.erl
@@ -121,9 +121,11 @@ end_tc(_Mod, TC, Config, Result, _Return) ->
call(fun call_generic/3, Result, [post_end_per_testcase, TC, Config],
'$ct_no_change').
+%% Case = TestCase | {TestCase,GroupName}
on_tc_skip(How, {Suite, Case, Reason}) ->
call(fun call_cleanup/3, {How, Reason}, [on_tc_skip, Suite, Case]).
+%% Case = TestCase | {TestCase,GroupName}
on_tc_fail(_How, {Suite, Case, Reason}) ->
call(fun call_cleanup/3, Reason, [on_tc_fail, Suite, Case]).