diff options
author | Trevor Gamblin <trevor.gamblin@windriver.com> | 2019-09-10 07:56:17 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-11 07:30:13 +0100 |
commit | 745e38ff0f95a1e77eacea85184c0c7b20a9feb3 (patch) | |
tree | f01e33875f3162dc4d3bf54afe212b6746b40445 /meta/recipes-support | |
parent | 5f79ad273e5edd1ec09499767e1d6037c19b4091 (diff) | |
download | poky-745e38ff0f95a1e77eacea85184c0c7b20a9feb3.tar.gz |
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.
(From OE-Core rev: 86b8a1d534bfcd70775c6e2b59eabe10de29f526)
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libevent/libevent/run-ptest | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/recipes-support/libevent/libevent/run-ptest b/meta/recipes-support/libevent/libevent/run-ptest index 080806dea9..d3b5e793c3 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" | |||
10 | 10 | ||
11 | cd ${LIBEVENTLIB}/ptest | 11 | cd ${LIBEVENTLIB}/ptest |
12 | 12 | ||
13 | for test in ./test/* | 13 | # Run only the libevent "regress" test. All other test scripts in the |
14 | do | 14 | # libevent "test" folder are related to performance, e.g. read/write |
15 | $test 2>&1| sed -e '/OK/ s/^/PASS: / ; /FAILED/ s/^/FAIL: / ; /SKIPPED/ s/^/SKIP: / ; /DISABLED/ s/^/SKIP: /' | cut -f1,2 -d ':' | tee -a ${LOG} | 15 | # rates, and/or do not provide a pass/fail output that can be recorded |
16 | done | 16 | # in the ptest log. |
17 | ./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} | ||
17 | 18 | ||
18 | passed=`grep PASS ${LOG}|wc -l` | 19 | passed=`grep PASS ${LOG}|wc -l` |
19 | failed=`grep FAIL ${LOG}|wc -l` | 20 | failed=`grep FAIL ${LOG}|wc -l` |