瀏覽代碼

Use eunit_dir() instead of ?EUNIT_DIR since the function exists.

The eunit_dir() does use the ?EUNIT_DIR macro internally, but it also builds, what I guess is, an absolute path, which might be better :) At least it's more consistent.
pull/3/head
Oscar Hellström 15 年之前
父節點
當前提交
8ea62597ff
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/rebar_eunit.erl

+ 1
- 1
src/rebar_eunit.erl 查看文件

@ -75,7 +75,7 @@ eunit(Config, AppFile) ->
end,
%% Make sure ?EUNIT_DIR/ and ebin/ directory exists (tack on dummy module)
ok = filelib:ensure_dir(?EUNIT_DIR ++ "/foo"),
ok = filelib:ensure_dir(eunit_dir() ++ "/foo"),
ok = filelib:ensure_dir(ebin_dir() ++ "/foo"),
%% Setup code path prior to compilation so that parse_transforms and the like

Loading…
取消
儲存