浏览代码

Merge pull request #143 from loxybjorn/grep_using_double_quotation_marks

Change rebar_ct:check_log/3 to use double quotes
pull/3/head
Dave Smith 11 年前
父节点
当前提交
209c013dff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_ct.erl

+ 1
- 1
src/rebar_ct.erl 查看文件

@ -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,

正在加载...
取消
保存