From: Trevor Gamblin Date: Tue, 18 Jul 2023 12:42:23 +0000 (-0400) Subject: python3: ensure ptest regression capture X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~310 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2100c588863b9da64ea8f2eb6be4ff445e26b5f0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python3: ensure ptest regression capture Add a conditional echo statement to make sure that there is a FAIL emitted when python3 ptests regress in a way sed doesn't catch. Signed-off-by: Trevor Gamblin Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-devtools/python/python3/run-ptest b/meta/recipes-devtools/python/python3/run-ptest index ee1130284b6..efa84555a5f 100644 --- a/meta/recipes-devtools/python/python3/run-ptest +++ b/meta/recipes-devtools/python/python3/run-ptest @@ -1,3 +1,3 @@ #!/bin/sh -SETUPTOOLS_USE_DISTUTILS=nonlocal python3 -m test -v -j 4 | 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' +{ SETUPTOOLS_USE_DISTUTILS=nonlocal python3 -m test -v -j 4 || echo "FAIL: python3" ; } | 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'