aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_hooks_SUITE.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-02-16 14:15:32 +0100
committerSiri Hansen <[email protected]>2017-02-20 12:40:09 +0100
commit8151495812ffabf560958e5434d3edbe46f29695 (patch)
tree191012db353dba109664fb2bc4eaa3e5f1791990 /lib/common_test/test/ct_hooks_SUITE.erl
parent827732949ba9cd844347bca1a46b2e2055810e69 (diff)
downloadotp-8151495812ffabf560958e5434d3edbe46f29695.tar.gz
otp-8151495812ffabf560958e5434d3edbe46f29695.tar.bz2
otp-8151495812ffabf560958e5434d3edbe46f29695.zip
[ct] Send tc_start event on force_stop and failed sequence
If test cases were skipped because of option {force_stop,skip_rest} or because of a failed sequence, then no tc_start event would be sent, only only tc_done. This is now corrected.
Diffstat (limited to 'lib/common_test/test/ct_hooks_SUITE.erl')
-rw-r--r--lib/common_test/test/ct_hooks_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_hooks_SUITE.erl b/lib/common_test/test/ct_hooks_SUITE.erl
index e5d8f15453..7c589cea4f 100644
--- a/lib/common_test/test/ct_hooks_SUITE.erl
+++ b/lib/common_test/test/ct_hooks_SUITE.erl
@@ -2102,6 +2102,7 @@ test_events(failed_sequence) ->
{?eh,cth,{empty_cth,on_tc_fail,
[seq_SUITE,test_case_1,{failed,failed_on_purpose},[]]}},
{?eh,test_stats,{0,1,{0,0}}},
+ {?eh,tc_start,{seq_SUITE,test_case_2}},
{?eh,tc_done,{seq_SUITE,test_case_2,
{auto_skipped,{sequence_failed,seq1,test_case_1}}}},
{?eh,cth,{empty_cth,on_tc_skip,
@@ -2149,6 +2150,7 @@ test_events(repeat_force_stop) ->
[repeat_SUITE,test_case_1,'$proplist',ok,[]]}},
{?eh,tc_done,{repeat_SUITE,test_case_1,ok}},
{?eh,test_stats,{1,0,{0,0}}},
+ {?eh,tc_start,{repeat_SUITE,test_case_2}},
{?eh,tc_done,{repeat_SUITE,test_case_2,
{auto_skipped,
"Repeated test stopped by force_stop option"}}},