From a447067888deb47cad7b009d65f76bed61fda7a3 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 8 Apr 2015 18:53:47 -0500 Subject: rm old beams, make erlcinfo graph per app isntad of global to project --- src/rebar_prv_eunit.erl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/rebar_prv_eunit.erl') 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. -- cgit v1.1