Selaa lähdekoodia

fix run_all_hooks call for ct provider, no need to pass appinfo

pull/785/head
Tristan Sloughter 9 vuotta sitten
vanhempi
commit
d19320b17c
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      src/rebar_prv_common_test.erl

+ 2
- 2
src/rebar_prv_common_test.erl Näytä tiedosto

@ -43,12 +43,12 @@ do(State) ->
%% Run ct provider prehooks
Providers = rebar_state:providers(State),
Cwd = rebar_dir:get_cwd(),
rebar_hooks:run_all_hooks(Cwd, pre, ?PROVIDER, Providers, element(2,rebar_app_info:new(noen)), State),
rebar_hooks:run_all_hooks(Cwd, pre, ?PROVIDER, Providers, State),
try run_test(State) of
{ok, State1} = Result ->
%% Run ct provider posthooks
rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, element(2,rebar_app_info:new(noen)), State1),
rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State1),
rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)),
Result;
?PRV_ERROR(_) = Error ->

Ladataan…
Peruuta
Tallenna