mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
rebar_qc: ensure_dir/1 the same way as in rebar_eunit
This commit is contained in:
parent
e47d643ea3
commit
75a6de27e7
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue