diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-10-15 11:56:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 11:56:57 -0400 |
commit | 7bfc8110d1736d2cbf61e19d2fc16dc8e854b460 (patch) | |
tree | 91f6606ad1083eea8e57fcc46821454180b50c94 /src/rebar_prv_eunit.erl | |
parent | 86519cf743204eab1d922ca8133fbf00c66f9ee8 (diff) | |
parent | fb6de6e0e5dc0da1c4e64c166bcb69327420cb60 (diff) |
Merge pull request #1907 from ferd/refactor-env-paths
Refactor env path handling and fix some bugs related to it
Diffstat (limited to 'src/rebar_prv_eunit.erl')
-rw-r--r-- | src/rebar_prv_eunit.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl index 4b71416..f120926 100644 --- a/src/rebar_prv_eunit.erl +++ b/src/rebar_prv_eunit.erl @@ -54,7 +54,7 @@ do(State, Tests) -> ?INFO("Performing EUnit tests...", []), setup_name(State), - rebar_utils:update_code(rebar_state:code_paths(State, all_deps), [soft_purge]), + rebar_paths:set_paths([deps, plugins], State), %% Run eunit provider prehooks Providers = rebar_state:providers(State), @@ -67,14 +67,14 @@ do(State, Tests) -> {ok, State1} -> %% Run eunit provider posthooks rebar_hooks:run_project_and_app_hooks(Cwd, post, ?PROVIDER, Providers, State1), - rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)), + rebar_paths:set_paths([plugins, deps], State), {ok, State1}; Error -> - rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)), + rebar_paths:set_paths([plugins, deps], State), Error end; Error -> - rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)), + rebar_paths:set_paths([plugins, deps], State), Error end. |