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

2016-01-11 Thread Yi Zhao
在 2016年01月08日 16:59, Burton, Ross 写道: On 8 January 2016 at 08:44, Yi Zhao > wrote: It still need to escape quotation marks if using -F option. Consider the following log: [521514.737] (EE) evdev: Qemu Tablet: Unable to open

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

2016-01-08 Thread Yi Zhao
在 2016年01月07日 20:21, Burton, Ross 写道: On 7 January 2016 at 03:29, Yi Zhao > wrote: Sometimes the grep output is not correct if the log message contains some special characters. Use re.escape to escape all non-alphanumerics

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

2016-01-08 Thread Burton, Ross
On 8 January 2016 at 08:44, Yi Zhao wrote: > It still need to escape quotation marks if using -F option. > Consider the following log: > [521514.737] (EE) evdev: Qemu Tablet: Unable to open evdev device > "/dev/input/touchscreen0". > > We still need an extra step to

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

2016-01-06 Thread Yi Zhao
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 Signed-off-by: Yi Zhao --- meta/lib/oeqa/runtime/parselogs.py |6 -- 1 file changed, 4 insertions(+), 2