[oe-commits] [openembedded-core] 03/03: libevent: don't treat test stats line as pass/fail in ptest

git at git.openembedded.org git at git.openembedded.org
Wed Sep 11 06:30:42 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 86b8a1d534bfcd70775c6e2b59eabe10de29f526
Author: Trevor Gamblin <trevor.gamblin at windriver.com>
AuthorDate: Tue Sep 10 07:56:17 2019 -0400

    libevent: don't treat test stats line as pass/fail in ptest
    
    Supplemental to commit fb17b46e2. The libevent "regress" test
    outputs its own pass/fail results, e.g.
    "2/300 TESTS FAILED. (31 skipped)", which will be miscounted
    as an extra test fail in the ptest log. Fixed this to ignore
    the libevent results line when counting actual pass/fail
    results.
    
    Also removed the for loop in run-ptest and targeted only the
    libevent "regress" test, as the other tests being run were
    related to performance and did not provide a relevant pass/fail
    output.
    
    Signed-off-by: Trevor Gamblin <trevor.gamblin at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-support/libevent/libevent/run-ptest | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-support/libevent/libevent/run-ptest b/meta/recipes-support/libevent/libevent/run-ptest
index 080806d..d3b5e79 100644
--- a/meta/recipes-support/libevent/libevent/run-ptest
+++ b/meta/recipes-support/libevent/libevent/run-ptest
@@ -10,10 +10,11 @@ LOG="${LIBEVENTLIB}/ptest/libevent_ptest_$(date +%Y%m%d-%H%M%S).log"
 
 cd ${LIBEVENTLIB}/ptest 
 
-for test in ./test/*
-do
-    $test 2>&1| sed -e '/OK/ s/^/PASS: / ; /FAILED/ s/^/FAIL: / ; /SKIPPED/ s/^/SKIP: / ; /DISABLED/ s/^/SKIP: /' | cut -f1,2 -d ':' | tee -a ${LOG}
-done
+# Run only the libevent "regress" test. All other test scripts in the
+# libevent "test" folder are related to performance, e.g. read/write
+# rates, and/or do not provide a pass/fail output that can be recorded
+# in the ptest log.
+./test/regress 2>&1| sed -e '/TESTS/d' -e '/tests/d' -e '/OK/ s/^/PASS: / ; /FAILED/ s/^/FAIL: / ; /SKIPPED/ s/^/SKIP: / ; /DISABLED/ s/^/SKIP: /' | cut -f1,2 -d ':' | tee -a ${LOG}
 
 passed=`grep PASS ${LOG}|wc -l`
 failed=`grep FAIL ${LOG}|wc -l`

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list