c-ares: Improve the ptest output

Before the patch:
 # ./run-ptest
[snip]
[ DISABLED ] LibraryTest.DISABLED_ParseAReplyVariantCnameLast
[ RUN      ] LibraryTest.ParseAReplyErrors
[       OK ] LibraryTest.ParseAReplyErrors (4 ms)
[ RUN      ] LibraryTest.ParseAReplyAllocFail
[       OK ] LibraryTest.ParseAReplyAllocFail (0 ms)
[snip]

After the patch:
 # ./run-ptest
[snip]
SKIP:  LibraryTest.DISABLED_ParseAReplyVariantCnameLast
PASS:  LibraryTest.ParseAReplyErrors
PASS:  LibraryTest.ParseAReplyAllocFail
[snip]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Mingli Yu 2024-04-15 17:07:50 +08:00 committed by Khem Raj
parent 3ae9254730
commit 7b3b303c73
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -1,7 +1,3 @@
#!/bin/sh
./arestest --gtest_filter=-*.Live* --gtest_print_time=0 | sed -E '/^\[ RUN/d ; s/\[ OK \]/PASS: / ; s/\[ DISABLED \]/SKIP: / ; s/\[ FAILED \]/FAIL: /'
if ./arestest --gtest_filter=-*.Live*; then
echo "PASS: c-ares"
else
echo "FAIL: c-ares"
fi