diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-09-03 20:56:29 -0700 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-09-03 20:56:29 -0700 |
commit | a311961e8b6c1634bc3beee9854f5b2d4f72393d (patch) | |
tree | b1f143c545768b4891f08892a7ee18f24fc16dbc /src/rebar_prv_common_test.erl | |
parent | bee43181d2c60df78e159da263b0889a64f5b88e (diff) | |
parent | a81444ae1c32fb1ff73bd571327fd6adeec9901f (diff) |
Merge pull request #760 from tsloughter/app_info_state
move state into app_info
Diffstat (limited to 'src/rebar_prv_common_test.erl')
-rw-r--r-- | src/rebar_prv_common_test.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index 25e9dad..aafc425 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -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, State), + rebar_hooks:run_all_hooks(Cwd, pre, ?PROVIDER, Providers, element(2,rebar_app_info:new(noen)), State), try run_test(State) of {ok, State1} = Result -> %% Run ct provider posthooks - rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State1), + rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, element(2,rebar_app_info:new(noen)), State1), rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)), Result; ?PRV_ERROR(_) = Error -> @@ -307,7 +307,7 @@ copy(State, Dir) -> compile_dir(State, Dir) -> NewState = replace_src_dirs(State, [filename:absname(Dir)]), - ok = rebar_erlc_compiler:compile(NewState, rebar_dir:base_dir(State), Dir), + ok = rebar_erlc_compiler:compile(rebar_state:opts(NewState), rebar_dir:base_dir(State), Dir), ok = maybe_cover_compile(State, Dir), Dir. |