Fix the 'ct' target to work on Windows with MSYS

This commit is contained in:
Jan Klötzke 2011-10-01 13:19:49 +02:00 committed by Tuncer Ayaz
parent 85575fca65
commit 3f9b346dec

View file

@ -102,7 +102,7 @@ clear_log(RawLog) ->
%% log results
check_log(RawLog) ->
{ok, Msg} =
rebar_utils:sh("egrep -e 'TEST COMPLETE' -e '{error,make_failed}' "
rebar_utils:sh("grep -e 'TEST COMPLETE' -e '{error,make_failed}' "
++ RawLog, [{use_stdout, false}]),
MakeFailed = string:str(Msg, "{error,make_failed}") =/= 0,
RunFailed = string:str(Msg, ", 0 failed") =:= 0,