mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 17:39:13 +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:
parent
223846a1e0
commit
bdaa00b43b
@ -5,11 +5,11 @@ set -o pipefail
|
|||||||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
|
|
||||||
${SCRIPTPATH}/../tests/sdbus-c++-unit-tests 2>&1 | \
|
${SCRIPTPATH}/../tests/sdbus-c++-unit-tests 2>&1 | \
|
||||||
sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
|
sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/PASS: \1 /' | \
|
||||||
sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
|
sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAIL: \1 /' | \
|
||||||
awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}'
|
awk '{if ($1 == "PASS:" || $1 == "FAIL:") {print $0}}'
|
||||||
|
|
||||||
${SCRIPTPATH}/../tests/sdbus-c++-integration-tests 2>&1 | \
|
${SCRIPTPATH}/../tests/sdbus-c++-integration-tests 2>&1 | \
|
||||||
sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
|
sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/PASS: \1 /' | \
|
||||||
sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
|
sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAIL: \1 /' | \
|
||||||
awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}'
|
awk '{if ($1 == "PASS:" || $1 == "FAIL:") {print $0}}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user