summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_prv_common_test.erl4
-rw-r--r--src/rebar_prv_eunit.erl2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl
index b481da4..aa71dbd 100644
--- a/src/rebar_prv_common_test.erl
+++ b/src/rebar_prv_common_test.erl
@@ -53,8 +53,8 @@ do(State) ->
?DEBUG("common test opts: ~p", [Opts1]),
{ok, State1} = run_test(State, Opts1),
%% Run ct provider posthooks
- rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State),
- {ok, State1};
+ rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State1),
+ {ok, State1}
end
catch
error:Reason ->
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl
index 1388a7b..473a913 100644
--- a/src/rebar_prv_eunit.erl
+++ b/src/rebar_prv_eunit.erl
@@ -46,7 +46,7 @@ do(State) ->
{ok, Tests} ->
{ok, State1} = do_tests(State, Tests),
%% Run ct provider posthooks
- rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State),
+ rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State1),
{ok, State1};
Error ->
Error