diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-02-28 11:50:40 -0500 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2016-02-28 11:50:40 -0500 |
commit | a0b2c743566fcfae543ba758b954ec465db6fcfd (patch) | |
tree | bc05b44242ac7df355194440c7946002e3ee1d7b /src/rebar_prv_common_test.erl | |
parent | 47a0a20a3cc649303a31368dee82012983512d72 (diff) | |
parent | c36e9bf791e90b27cb0c9657cf245049a3595572 (diff) |
Merge pull request #1091 from tsloughter/all_hooks
Run all hooks
Diffstat (limited to 'src/rebar_prv_common_test.erl')
-rw-r--r-- | src/rebar_prv_common_test.erl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index 4be50d8..180061c 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -52,14 +52,16 @@ do(State, Tests) -> %% Run ct provider prehooks Providers = rebar_state:providers(State), Cwd = rebar_dir:get_cwd(), - rebar_hooks:run_all_hooks(Cwd, pre, ?PROVIDER, Providers, State), + + %% Run ct provider pre hooks for all project apps and top level project hooks + rebar_hooks:run_project_and_app_hooks(Cwd, pre, ?PROVIDER, Providers, State), case Tests of {ok, T} -> case run_tests(State, T) of ok -> - %% Run ct provider posthooks - rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State), + %% Run ct provider post hooks for all project apps and top level project hooks + rebar_hooks:run_project_and_app_hooks(Cwd, post, ?PROVIDER, Providers, State), rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)), {ok, State}; Error -> @@ -653,4 +655,3 @@ help(verbose) -> "Verbose output"; help(_) -> "". - |