From ab84fc89ccf7fbbff8457afefdc301e37de6a6c9 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Sun, 8 Mar 2015 09:55:30 -0700 Subject: compile source from the symlinked directories under `_build` to get correct compile paths included in module info --- src/rebar_prv_eunit.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rebar_prv_eunit.erl') diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl index 7ea5ced..1540471 100644 --- a/src/rebar_prv_eunit.erl +++ b/src/rebar_prv_eunit.erl @@ -137,7 +137,6 @@ compile_tests(State, TestApps) -> AppState end, ok = rebar_erlc_compiler:compile(replace_src_dirs(S), - ec_cnv:to_list(rebar_app_info:dir(AppInfo)), ec_cnv:to_list(rebar_app_info:out_dir(AppInfo))) end, lists:foreach(F, TestApps), @@ -149,7 +148,7 @@ compile_bare_tests(State, TestApps) -> %% compile just the `test` directory of the base dir [] -> rebar_erlc_compiler:compile(replace_src_dirs(State), rebar_dir:get_cwd(), - rebar_dir:base_dir(State)); + filename:join([rebar_dir:base_dir(State), "ebin"])); %% already compiled `./test` so do nothing _ -> ok end. -- cgit v1.1