瀏覽代碼

pass command as arg to run_aux for now

pull/3/head
Tristan Sloughter 10 年之前
父節點
當前提交
2930eb480d
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      src/rebar3.erl
  2. +1
    -1
      test/rebar_compile_SUITE.erl

+ 1
- 1
src/rebar3.erl 查看文件

@ -64,7 +64,7 @@ main(Args) ->
run(BaseState, Command) ->
_ = application:load(rebar),
BaseState1 = rebar_state:set(BaseState, task, Command),
run_aux(BaseState1, []).
run_aux(BaseState1, [Command]).
%% ====================================================================
%% Internal functions

+ 1
- 1
test/rebar_compile_SUITE.erl 查看文件

@ -25,7 +25,7 @@ init_per_testcase(_, Config) ->
DataDir = proplists:get_value(data_dir, Config),
AppsDir = filename:join([DataDir, create_random_name("apps_dir1_")]),
ok = ec_file:mkdir_p(AppsDir),
Verbosity = rebar3:log_level([]),
Verbosity = rebar3:log_level(),
rebar_log:init(command_line, Verbosity),
State = rebar_state:new(),
[{apps, AppsDir}, {state, State} | Config].

Loading…
取消
儲存