1. dreid
  2. rebar


Oscar Hellström  committed adad067

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.

  • Participants
  • Parent commits 41a1e23
  • Branches default

Comments (0)

Files changed (1)

File src/rebar_eunit.erl

View file
  • Ignore whitespace
     %% 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