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
|
Output = " 2>&1 | tee -a " ++ RawLog
|
||||||
end,
|
end,
|
||||||
|
|
||||||
case rebar_utils:sh(Cmd ++ Output, [{"TESTDIR", TestDir}]) of
|
rebar_utils:sh(Cmd ++ Output, [{"TESTDIR", TestDir}]),
|
||||||
ok ->
|
check_log(RawLog).
|
||||||
check_log(RawLog);
|
|
||||||
{error, _Rc} ->
|
|
||||||
show_log(RawLog),
|
|
||||||
?ERROR("Executing tests failed.\n", []),
|
|
||||||
?FAIL
|
|
||||||
end.
|
|
||||||
|
|
||||||
|
|
||||||
clear_log(RawLog) ->
|
clear_log(RawLog) ->
|
||||||
|
|
Loading…
Reference in a new issue