瀏覽代碼

fix ct test for new command handling

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

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

@ -141,7 +141,7 @@ run_aux(State, Args) ->
{ok, Providers} = application:get_env(rebar, providers),
State3 = rebar_state:create_logic_providers(Providers, State2),
Task = rebar_state:get(State3, task, "help"),
rebar_core:process_command(rebar_state:command_args(State3, Args), ec_cnv:to_atom(Task)),
rebar_core:process_command(rebar_state:command_args(State3, Args), list_to_atom(Task)),
ok.
%%

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

@ -43,7 +43,7 @@ build_basic_app(Config) ->
ConfigFile = filename:join([AppDir, "rebar.config"]),
write_config(ConfigFile, []),
rebar3:run(rebar_state:new(State, [], AppDir), ["compile"]),
rebar3:run(rebar_state:new(State, [], AppDir), "compile"),
%% Verify app was built
[App] = rebar_app_discover:find_apps([AppDir]),

Loading…
取消
儲存