summaryrefslogtreecommitdiff
path: root/test/rebar_test_utils.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-08-21 08:51:42 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-08-21 08:51:42 -0500
commitb52395f4aec11bacaace91ec72e100c9778d6098 (patch)
tree571b917f2681729f4f299c443066a233027a3d6b /test/rebar_test_utils.erl
parente9cfbfb36b53d2fc6c7ca34bb49fe75fa112f770 (diff)
parent293dfb79d6181b77f866785b2a08d4ab767a5643 (diff)
Merge pull request #728 from pvmart/master
fix leaking hex_registry table
Diffstat (limited to 'test/rebar_test_utils.erl')
-rw-r--r--test/rebar_test_utils.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rebar_test_utils.erl b/test/rebar_test_utils.erl
index 8e00483..c07df68 100644
--- a/test/rebar_test_utils.erl
+++ b/test/rebar_test_utils.erl
@@ -25,7 +25,9 @@ init_rebar_state(Config, Name) ->
ok = ec_file:mkdir_p(CheckoutsDir),
Verbosity = rebar3:log_level(),
rebar_log:init(command_line, Verbosity),
+ GlobalDir = filename:join([DataDir, "cache"]),
State = rebar_state:new([{base_dir, filename:join([AppsDir, "_build"])}
+ ,{global_rebar_dir, GlobalDir}
,{root_dir, AppsDir}]),
[{apps, AppsDir}, {checkouts, CheckoutsDir}, {state, State} | Config].