From 8ea62597ff25b620cc2d5c6bfe19c50678bd049f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20Hellstr=C3=B6m?= Date: Tue, 24 Aug 2010 21:59:59 +0200 Subject: [PATCH] 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. --- src/rebar_eunit.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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