瀏覽代碼

convert 'app' to 'application' in eunit_opts to match cmdline args

pull/1021/head
Tristan Sloughter 9 年之前
父節點
當前提交
7b79f1b1b0
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/rebar_prv_eunit.erl

+ 2
- 1
src/rebar_prv_eunit.erl 查看文件

@ -139,7 +139,8 @@ normalize(Key, Value) -> {Key, list_to_atom(Value)}.
cfg_tests(State) -> cfg_tests(State) ->
case rebar_state:get(State, eunit_tests, []) of case rebar_state:get(State, eunit_tests, []) of
Tests when is_list(Tests) -> Tests;
Tests when is_list(Tests) ->
lists:map(fun({app, App}) -> {application, App}; (T) -> T end, Tests);
Wrong -> Wrong ->
%% probably a single non list term %% probably a single non list term
?PRV_ERROR({badconfig, {"Value `~p' of option `~p' must be a list", {Wrong, eunit_tests}}}) ?PRV_ERROR({badconfig, {"Value `~p' of option `~p' must be a list", {Wrong, eunit_tests}}})

Loading…
取消
儲存