Skip to content

Commit

Permalink
Merge branch 'kuba/common_test/cth_surefire_skip_group_fix/dont_tail_…
Browse files Browse the repository at this point in the history
…empty_list' into maint

* kuba/common_test/cth_surefire_skip_group_fix/dont_tail_empty_list:
  common_test: cth_surefire don't fail on group skip
  • Loading branch information
u3s committed Dec 4, 2024
2 parents 6efcc3b + cccddb7 commit 3b92c38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/common_test/src/cth_surefire.erl
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,11 @@ on_tc_skip(Suite,Tc, Res, State0) ->
State0
end,
State2 = end_tc(Tc,[],Res,init_tc(set_suite(Suite,State1),[])),
CurrGroup = State2#state.curr_group,
State =
case Tc of
end_per_group ->
State2#state{curr_group = tl(State2#state.curr_group)};
case {Tc, is_list(CurrGroup) andalso length(CurrGroup)>0}of
{end_per_group, true} ->
State2#state{curr_group = tl(CurrGroup)};
_ ->
State2
end,
Expand Down

0 comments on commit 3b92c38

Please sign in to comment.