[OE-core] [PATCH 3/3] oeqa/runtime/parselogs: escape special character for grep

Burton, Ross ross.burton at intel.com
Thu Jan 7 12:21:50 UTC 2016


On 7 January 2016 at 03:29, Yi Zhao <yi.zhao at windriver.com> wrote:

> Sometimes the grep output is not correct if the log message contains
> some special characters. Use re.escape to escape all non-alphanumerics
> before grep
>

If we're going to insist that the strings are literal then instead of
telling grep to use extended regexp's and passing escaped regexs, why not
just use -F which tells grep to search for fixed strings, not expressions.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160107/885a6c47/attachment-0002.html>


More information about the Openembedded-core mailing list