diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-03-08 15:06:54 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-03-08 15:06:54 -0500 |
commit | 963f9754233b53933e7febda350666400f439fdd (patch) | |
tree | 2b81916a49b1c7625277b4e4f940a481c9601d75 /src/rebar_prv_eunit.erl | |
parent | 5f61bd5b0610a2fd0d8f558fb84864133e625304 (diff) | |
parent | ab84fc89ccf7fbbff8457afefdc301e37de6a6c9 (diff) |
Merge pull request #249 from talentdeficit/compile_from_build
compile source from the symlinked directories under `_build`
Diffstat (limited to 'src/rebar_prv_eunit.erl')
-rw-r--r-- | src/rebar_prv_eunit.erl | 3 |
1 files changed, 1 insertions, 2 deletions
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. |