summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpvmart <mao@jiadaochipingguo.local>2015-08-20 09:03:34 +0800
committerpvmart <mao@jiadaochipingguo.local>2015-08-20 09:03:34 +0800
commit293dfb79d6181b77f866785b2a08d4ab767a5643 (patch)
tree571b917f2681729f4f299c443066a233027a3d6b
parentc2d9aec502682e836fc58e00f17e60b331e40159 (diff)
speed up tests a bit by setting global_rebar_dir
-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].