mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
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:
parent
d590c18b5a
commit
f8900aecc3
1 changed files with 2 additions and 8 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue