diff options
author | Yi Fan Yu <yifan.yu@windriver.com> | 2021-04-01 13:01:41 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-05 15:29:02 +0100 |
commit | bbe14ab3311591caeadaaee1b2b9ed55c890a202 (patch) | |
tree | b2a5287f14d5ef8d88a12c5e4f1e007a9d2f6e99 /meta/recipes-devtools/valgrind/valgrind | |
parent | cc5d71ef733e6d4ae81a3fb0d9b45fbf9d022c5a (diff) | |
download | poky-bbe14ab3311591caeadaaee1b2b9ed55c890a202.tar.gz |
valgrind: print failed ptest details
Some intermittent failures in valgrind are hard
reproduce.
Printing the difference between actual and expected
will make understanding them slightly easier.
[YOCTO #14294]
(From OE-Core rev: 099313ef541920d4a84b801d9d8788a56ba7ec61)
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind')
-rwxr-xr-x | meta/recipes-devtools/valgrind/valgrind/run-ptest | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/run-ptest b/meta/recipes-devtools/valgrind/valgrind/run-ptest index e8a1a668fc..f37780ef6a 100755 --- a/meta/recipes-devtools/valgrind/valgrind/run-ptest +++ b/meta/recipes-devtools/valgrind/valgrind/run-ptest | |||
@@ -55,6 +55,16 @@ for i in `cat remove-for-all`; do | |||
55 | mv $i.IGNORE $i.vgtest; | 55 | mv $i.IGNORE $i.vgtest; |
56 | done | 56 | done |
57 | 57 | ||
58 | echo "Failed test details..." | ||
59 | failed_tests=`grep FAIL: ${LOG} | awk '{print $2}'` | ||
60 | for test in $failed_tests; do | ||
61 | for diff_results in `ls $test*.diff`; do | ||
62 | echo $diff_results | ||
63 | echo '************' | ||
64 | cat $diff_results | ||
65 | done | ||
66 | done | ||
67 | |||
58 | passed=`grep PASS: ${LOG}|wc -l` | 68 | passed=`grep PASS: ${LOG}|wc -l` |
59 | failed=`grep FAIL: ${LOG}|wc -l` | 69 | failed=`grep FAIL: ${LOG}|wc -l` |
60 | skipped=`grep SKIP: ${LOG}|wc -l` | 70 | skipped=`grep SKIP: ${LOG}|wc -l` |