diff mbox series

[meta-oe,kirkstone] sdbus-c++: fix ptest script output

Message ID 20251018130449.1382400-1-skandigraun@gmail.com
State New
Headers show
Series [meta-oe,kirkstone] sdbus-c++: fix ptest script output | expand

Commit Message

Gyorgy Sarvari Oct. 18, 2025, 1:04 p.m. UTC
The run-ptest script had incorrect output: instead of PASS/FAIL, it
is outputting OK/FAILED - that cannot be interpreted by the logparser.

This patch sets the correct run-ptest output.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 .../recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest
index f6ade0c7e4..48354c2f85 100755
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest
@@ -5,11 +5,11 @@  set -o pipefail
 SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
 
 ${SCRIPTPATH}/../tests/sdbus-c++-unit-tests 2>&1 | \
-sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
-sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
-awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}'
+sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/PASS: \1 /' | \
+sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAIL: \1 /' | \
+awk '{if ($1 == "PASS:" || $1 == "FAIL:") {print $0}}'
 
 ${SCRIPTPATH}/../tests/sdbus-c++-integration-tests 2>&1 | \
-sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
-sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
-awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}' 
+sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/PASS: \1 /' | \
+sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAIL: \1 /' | \
+awk '{if ($1 == "PASS:" || $1 == "FAIL:") {print $0}}'