summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscar Hellström <oscar@hellstrom.st>2010-08-24 21:59:59 +0200
committerOscar Hellström <oscar@hellstrom.st>2010-08-24 21:59:59 +0200
commit8ea62597ff25b620cc2d5c6bfe19c50678bd049f (patch)
treef2261a7b86a68943349276f83d18f021adcbf0e9
parent8c03d5959be4f9e14ed72bbaa3d17d0fc67412fb (diff)
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.
-rw-r--r--src/rebar_eunit.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl
index a8ce954..138b4f5 100644
--- a/src/rebar_eunit.erl
+++ b/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