From 293dfb79d6181b77f866785b2a08d4ab767a5643 Mon Sep 17 00:00:00 2001 From: pvmart Date: Thu, 20 Aug 2015 09:03:34 +0800 Subject: speed up tests a bit by setting global_rebar_dir --- test/rebar_test_utils.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/rebar_test_utils.erl') 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]. -- cgit v1.1