Przeglądaj źródła

Fix dialyzer warning for rebar_utils:sh/2 call

rebar_utils:sh/2 terminates on error and does not return an error code
as expected.
Tuncer Ayaz 14 lat temu
rodzic
commit
f8900aecc3
1 zmienionych plików z 2 dodań i 8 usunięć
  1. +2
    -8
      src/rebar_ct.erl

+ 2
- 8
src/rebar_ct.erl Wyświetl plik

@ -71,14 +71,8 @@ run_test(TestDir, Config, _File) ->
Output = " 2>&1 | tee -a " ++ RawLog
end,
case rebar_utils:sh(Cmd ++ Output, [{"TESTDIR", TestDir}]) of
ok ->
check_log(RawLog);
{error, _Rc} ->
show_log(RawLog),
?ERROR("Executing tests failed.\n", []),
?FAIL
end.
rebar_utils:sh(Cmd ++ Output, [{"TESTDIR", TestDir}]),
check_log(RawLog).
clear_log(RawLog) ->

Ładowanie…
Anuluj
Zapisz