summaryrefslogtreecommitdiff
path: root/src/rebar_prv_eunit.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-04-10 22:31:52 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-04-10 22:31:52 -0500
commitc3026cc8ced2bf44f3b816089c4d28b34c4356eb (patch)
treee5e1b84cb341af5f0798fc773cad7a4ca05003f1 /src/rebar_prv_eunit.erl
parent9913b2798f5ae4ad9f86707340c7c09c58ec53aa (diff)
parenta447067888deb47cad7b009d65f76bed61fda7a3 (diff)
Merge pull request #327 from tsloughter/rm_old_beam
rm old beams, make erlcinfo graph per app isntad of global to project
Diffstat (limited to 'src/rebar_prv_eunit.erl')
-rw-r--r--src/rebar_prv_eunit.erl12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl
index 3e57fb0..0ea3ae8 100644
--- a/src/rebar_prv_eunit.erl
+++ b/src/rebar_prv_eunit.erl
@@ -44,10 +44,14 @@ do(State) ->
case prepare_tests(State) of
{ok, Tests} ->
- {ok, State1} = do_tests(State, Tests),
- %% Run eunit provider posthooks
- rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State1),
- {ok, State1};
+ case do_tests(State, Tests) of
+ {ok, State1} ->
+ %% Run eunit provider posthooks
+ rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State1),
+ {ok, State1};
+ Error ->
+ Error
+ end;
Error ->
Error
end.