Skip to contentSkip to conversation

sdbus-c++: fix ptest script output

PATCH New Gyorgy Sarvari 1 participant 1 message Oct 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sdbus-c++: fix ptest script output

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.

---
 .../recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest +6 -6
index f6ade0c7e4..48354c2f85 100755
@@ -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}}'