From 4e0ab4065f3fdf81574d60d26e072386f6244c37 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Wed, 13 Jul 2011 20:22:03 +0200 Subject: Fix grep portability (Reported-by: Andrew Thompson) --- src/rebar_ct.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl index 7ce6142..2b6c5e3 100644 --- a/src/rebar_ct.erl +++ b/src/rebar_ct.erl @@ -90,7 +90,7 @@ clear_log(RawLog) -> %% log results check_log(RawLog) -> {ok, Msg} = - rebar_utils:sh("grep -e 'TEST COMPLETE' -e '{error,make_failed}' " + rebar_utils:sh("egrep -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, -- cgit v1.1