summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-07 14:02:13 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-07 14:02:13 +0200
commitfdc1425a3bf5539a284d829ac35ed734a3c68959 (patch)
treee280b481451947f2e78a80b25083111662c47d56 /src
parent19ef152ddf8a41fdde932cf42965b628ba8f06e2 (diff)
Use rebar_utils:test_dir/0 for coverdata export file
Diffstat (limited to 'src')
-rw-r--r--src/rebar_eunit.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl
index 289ae3d..80c13f6 100644
--- a/src/rebar_eunit.erl
+++ b/src/rebar_eunit.erl
@@ -397,9 +397,7 @@ cover_file(Module) ->
filename:join([?TEST_DIR, atom_to_list(Module) ++ ".COVER.html"]).
cover_export_coverdata() ->
- ExportFile = filename:join([rebar_utils:get_cwd(),
- ?TEST_DIR,
- "eunit.coverdata"]),
+ ExportFile = filename:join(rebar_utils:test_dir(), "eunit.coverdata"),
case cover:export(ExportFile) of
ok ->
?CONSOLE("Coverdata export: ~s~n", [ExportFile]);