@@ -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}}'
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(-)