ソースを参照

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, end,
%% Make sure ?EUNIT_DIR/ and ebin/ directory exists (tack on dummy module) %% 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"), ok = filelib:ensure_dir(ebin_dir() ++ "/foo"),
%% Setup code path prior to compilation so that parse_transforms and the like %% Setup code path prior to compilation so that parse_transforms and the like

読み込み中…
キャンセル
保存