diff options
| author | Zhang Peng <peng.zhang1.cn@windriver.com> | 2024-06-17 13:02:30 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-06-16 22:09:50 -0700 |
| commit | 7523f0d41c05713b7aadd3d018bade9fe10a202e (patch) | |
| tree | 1bdd5c1de37d54700a9e93b74ba2c2590306c707 | |
| parent | 9a9c0e6299fd774ac6a010793d3715444f82bc8f (diff) | |
| download | meta-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-ptest | 17 |
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 59b747dbd8..8d450b881f 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 | ||
| 3 | TEST_SSL=0 TEST_ASYNC=0 ./test.sh | 3 | 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 ' |
| 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 | |||
| 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 | |||
| 16 | } | ||
| 17 | }' | awk '{gsub(/:/,"",$NF)}1' | ||
| 18 | |||
