Selaa lähdekoodia

speed up tests a bit by setting global_rebar_dir

pull/728/head
pvmart 9 vuotta sitten
vanhempi
commit
293dfb79d6
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      test/rebar_test_utils.erl

+ 2
- 0
test/rebar_test_utils.erl Näytä tiedosto

@ -25,7 +25,9 @@ init_rebar_state(Config, Name) ->
ok = ec_file:mkdir_p(CheckoutsDir), ok = ec_file:mkdir_p(CheckoutsDir),
Verbosity = rebar3:log_level(), Verbosity = rebar3:log_level(),
rebar_log:init(command_line, Verbosity), rebar_log:init(command_line, Verbosity),
GlobalDir = filename:join([DataDir, "cache"]),
State = rebar_state:new([{base_dir, filename:join([AppsDir, "_build"])} State = rebar_state:new([{base_dir, filename:join([AppsDir, "_build"])}
,{global_rebar_dir, GlobalDir}
,{root_dir, AppsDir}]), ,{root_dir, AppsDir}]),
[{apps, AppsDir}, {checkouts, CheckoutsDir}, {state, State} | Config]. [{apps, AppsDir}, {checkouts, CheckoutsDir}, {state, State} | Config].

Ladataan…
Peruuta
Tallenna