Normalize log level as WARN to ERROR in new patch

This commit is contained in:
Fred Hebert 2014-11-27 15:25:01 -05:00
parent 167e2a12b8
commit d42ed46835
2 changed files with 3 additions and 3 deletions

View file

@ -45,8 +45,8 @@ run(_Dir) ->
%% Treat version constraints as warnings. %% Treat version constraints as warnings.
retest:log(info, "Check require vsn success with -k/--keep-going~n"), retest:log(info, "Check require vsn success with -k/--keep-going~n"),
ok = check_output("./rebar -k compile", should_succeed, ok = check_output("./rebar -k compile", should_succeed,
[SharedExpected, "WARN: "], [SharedExpected, "ERROR: "],
["ERROR: "]), ["WARN: "]),
ok. ok.
check_output(Cmd, FailureMode, Expected, Unexpected) -> check_output(Cmd, FailureMode, Expected, Unexpected) ->

View file

@ -137,4 +137,4 @@ version_tuple(ShouldAbort, OtpRelease, Type) ->
maybe_abort(abort, Format, Data) -> maybe_abort(abort, Format, Data) ->
?ABORT(Format, Data); ?ABORT(Format, Data);
maybe_abort(keep_going, Format, Data) -> maybe_abort(keep_going, Format, Data) ->
?WARN(Format, Data). ?ERROR(Format, Data).