Files
poky/meta/recipes-devtools/python/python3/run-ptest
Alexander Kanavin b701120462 python3: correctly process ptest output with sed
Particularly:

[ERROR|FAIL] was matching characters rather than strings.

Using (ERROR|FAIL) requires -r option.

(From OE-Core rev: c041c326a1dbf1b128fc32d887acd73c6f5fb415)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21 12:52:52 +00:00

241 B

#!/bin/sh

python3 -m test -v | sed -u -e '/... ok/ s/^/PASS: /g' -r -e '/... (ERROR|FAIL)/ s/^/FAIL: /g' -e '/... skipped/ s/^/SKIP: /g' -e 's/ ... ok//g' -e 's/ ... ERROR//g' -e 's/ ... FAIL//g' -e 's/ ... skipped//g'