diff options
author | Björn Bylander <bjorn.bylander@loxysoft.se> | 2013-09-18 14:41:36 +0200 |
---|---|---|
committer | Björn Bylander <bjorn.bylander@loxysoft.se> | 2013-09-20 15:12:21 +0200 |
commit | 1dfe56b3c6ada3b1bf91cf2956ffbbe50436e213 (patch) | |
tree | 5f6e770adda2478aeec95ec0ccf9968cbd54e859 /src | |
parent | 620c4b01c6e59d47e92ea069f8510b8cb482ebae (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_ct.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl index 04b2a51..74ae618 100644 --- a/src/rebar_ct.erl +++ b/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, |