Merge pull request #143 from loxybjorn/grep_using_double_quotation_marks

Change rebar_ct:check_log/3 to use double quotes
This commit is contained in:
Dave Smith 2013-09-20 06:57:09 -07:00
commit 209c013dff

View file

@ -149,7 +149,7 @@ check_fail_log(Config, RawLog, Command, Result) ->
check_log(Config,RawLog,Fun) ->
{ok, Msg} =
rebar_utils:sh("grep -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,