summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorZhang Peng <peng.zhang1.cn@windriver.com>2024-07-22 16:58:46 +0800
committerKhem Raj <raj.khem@gmail.com>2024-07-22 11:02:32 -0700
commitf18b8a0ab3f6740d3b4c5e5f1fcd5dc96affdf4f (patch)
treec970164cb763463de10527e917cd6e038dd1ddec /meta-oe
parent188186a3a03510aa3eca0cd4c571eb2a5633185e (diff)
downloadmeta-openembedded-f18b8a0ab3f6740d3b4c5e5f1fcd5dc96affdf4f.tar.gz
hiredis: remove ANSI color from ptest result
This change removes the ANSI color codes from the ptest result. Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-extended/hiredis/hiredis/run-ptest12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-oe/recipes-extended/hiredis/hiredis/run-ptest b/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
index 8d450b881..8b352c340 100644
--- a/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
+++ b/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
@@ -2,17 +2,17 @@
2 2
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 ' 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{ 4{
5 if ($NF == "\033[0;32mPASS\033[0;0m" || $NF == "\033[0;31mFAIL\033[0;0m" || $NF == "\033[01;33mSKIP\033[0;0m") { 5 gsub(/\x1B\[[0-9;]*m/, "")
6 if ($NF == "PASS" || $NF == "FAIL" || $NF == "SKIP") {
6 printf "%s: %s\n", $NF, $0 7 printf "%s: %s\n", $NF, $0
7 } else { 8 } else {
8 print 9 print
9 } 10 }
10}'| awk '{ 11}' | 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 if ($NF == "PASS" || $NF == "FAIL" || $NF == "SKIP") {
12 $NF = "" 13 $NF = ""
13 print $0 14 print $0
14 } else { 15 } else {
15 print 16 print
16 } 17 }
17}' | awk '{gsub(/:/,"",$NF)}1' 18}' | awk '{gsub(/:/,"",$NF)}1'
18