浏览代码

Merge pull request #772 from tsloughter/eunit_fix

delete and prepend code path instead of replacing, fixes #770
pull/776/merge
Fred Hebert 9 年前
父节点
当前提交
08f9b20272
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. +6
    -1
      src/rebar_utils.erl

+ 6
- 1
src/rebar_utils.erl 查看文件

@ -651,7 +651,12 @@ update_code(Paths) ->
code:add_patha(Path),
ok;
{ok, Modules} ->
code:replace_path(App, Path),
%% replace_path causes problems when running
%% tests in projects like erlware_commons that rebar3
%% also includes
%code:replace_path(App, Path),
code:del_path(App),
code:add_patha(Path),
[begin code:purge(M), code:delete(M) end || M <- Modules]
end
end, Paths).

正在加载...
取消
保存