summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Peng <peng.zhang1.cn@windriver.com>2024-06-17 13:02:30 +0800
committerKhem Raj <raj.khem@gmail.com>2024-06-16 22:09:50 -0700
commit7523f0d41c05713b7aadd3d018bade9fe10a202e (patch)
tree1bdd5c1de37d54700a9e93b74ba2c2590306c707
parent9a9c0e6299fd774ac6a010793d3715444f82bc8f (diff)
downloadmeta-openembedded-7523f0d41c05713b7aadd3d018bade9fe10a202e.tar.gz
hiredis: change ptest output format
This change consolidates the output format of the ptest command into a single common format. The format selected is the automake "simple test" format: "result: testname" Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/hiredis/hiredis/run-ptest17
1 files changed, 16 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/hiredis/hiredis/run-ptest b/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
index 59b747dbd..8d450b881 100644
--- a/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
+++ b/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
@@ -1,3 +1,18 @@
1#!/bin/sh 1#!/bin/sh
2 2
3TEST_SSL=0 TEST_ASYNC=0 ./test.sh 3TEST_SSL=0 TEST_ASYNC=0 ./test.sh | sed -e 's/PASSED/PASS/g' -e 's/FAILED/FAIL/g' -e 's/SKIPPED/SKIP/g' | awk '
4{
5 if ($NF == "\033[0;32mPASS\033[0;0m" || $NF == "\033[0;31mFAIL\033[0;0m" || $NF == "\033[01;33mSKIP\033[0;0m") {
6 printf "%s: %s\n", $NF, $0
7 } else {
8 print
9 }
10}'| awk '{
11 if ($NF == "\033[0;32mPASS\033[0;0m" || $NF == "\033[0;31mFAIL\033[0;0m" || $NF == "\033[01;33mSKIP\033[0;0m") {
12 $NF = ""
13 print $0
14 } else {
15 print
16 }
17}' | awk '{gsub(/:/,"",$NF)}1'
18