Skip to content

Commit

Permalink
hiredis: remove ANSI color from ptest result
Browse files Browse the repository at this point in the history
Source: meta-openembedded
MR: 158406
Type: Integration
Disposition: Merged from meta-openembedded
ChangeID: 4821bf8
Description:

This change removes the ANSI color codes from the
ptest result.

Signed-off-by: Zhang Peng <[email protected]>
Signed-off-by: Armin Kuster <[email protected]>
Signed-off-by: Jeremy A. Puhlman <[email protected]>
  • Loading branch information
Zhang Peng authored and jpuhlman committed Aug 19, 2024
1 parent 4f7369f commit 59f01d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions meta-oe/recipes-extended/hiredis/hiredis/run-ptest
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

TEST_SSL=0 TEST_ASYNC=0 ./test.sh | sed -e 's/PASSED/PASS/g' -e 's/FAILED/FAIL/g' -e 's/SKIPPED/SKIP/g' | awk '
{
if ($NF == "\033[0;32mPASS\033[0;0m" || $NF == "\033[0;31mFAIL\033[0;0m" || $NF == "\033[01;33mSKIP\033[0;0m") {
gsub(/\x1B\[[0-9;]*m/, "")
if ($NF == "PASS" || $NF == "FAIL" || $NF == "SKIP") {
printf "%s: %s\n", $NF, $0
} else {
print
}
}'| awk '{
if ($NF == "\033[0;32mPASS\033[0;0m" || $NF == "\033[0;31mFAIL\033[0;0m" || $NF == "\033[01;33mSKIP\033[0;0m") {
}' | awk '{
if ($NF == "PASS" || $NF == "FAIL" || $NF == "SKIP") {
$NF = ""
print $0
} else {
print
}
print
}
}' | awk '{gsub(/:/,"",$NF)}1'

0 comments on commit 59f01d4

Please sign in to comment.