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.
This commit is contained in:
Tuncer Ayaz 2010-09-29 21:34:09 +02:00
parent d590c18b5a
commit f8900aecc3

View file

@ -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) ->