summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-09 18:43:28 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-09 18:44:08 +0200
commit75a6de27e70ddcc46d04061b5a3fac25d6854222 (patch)
tree177c5b50aead67aaf9263f2ade54e33778ee1c07
parente47d643ea3b490fd4835629e86d90fa3121122de (diff)
rebar_qc: ensure_dir/1 the same way as in rebar_eunit
-rw-r--r--src/rebar_qc.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_qc.erl b/src/rebar_qc.erl
index 2531c0a..5784f7d 100644
--- a/src/rebar_qc.erl
+++ b/src/rebar_qc.erl
@@ -104,6 +104,10 @@ load_qc_mod(Mod) ->
?ABORT("Failed to load QC lib '~p'~n", [Mod])
end.
+ensure_dirs() ->
+ ok = filelib:ensure_dir(filename:join(qc_dir(), "dummy")),
+ ok = filelib:ensure_dir(filename:join(rebar_utils:ebin_dir(), "dummy")).
+
setup_codepath() ->
CodePath = code:get_path(),
true = code:add_patha(qc_dir()),
@@ -116,7 +120,7 @@ qc_dir() ->
run(Config, QC, QCOpts) ->
?DEBUG("qc_opts: ~p~n", [QCOpts]),
- ok = filelib:ensure_dir(filename:join(qc_dir(), "foo")),
+ ok = ensure_dirs(),
CodePath = setup_codepath(),
CompileOnly = rebar_utils:get_experimental_global(Config, compile_only,