瀏覽代碼

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,

Loading…
取消
儲存