mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +00:00
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. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
@@ -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}}'
|
||||
|
||||
Reference in New Issue
Block a user