mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Change rebar_ct:check_log/3 to use double quotes
The call to the grep program in rebar_ct:check_log/3 used single quotation marks around the strings grep should search for. This works well in most cases but fails on Windows 7 using GNU grep 2.5.4 as installed by the Chocolatey package GnuWin 0.6.3.1 with the follow message: ERROR: cmd /q /c grep -e 'TEST COMPLETE' -e '{error,make_failed}' ct/raw.log failed with error: 2 and output: grep: COMPLETE': No such file or directory This commit changes the single quotation marks to double quotation marks. I've tested this using GNU grep 2.5.3 on a Debian Linux machine and it works well.
This commit is contained in:
parent
620c4b01c6
commit
1dfe56b3c6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue