]> code.ossystems Code Review - openembedded-core.git/commitdiff
valgrind: print failed ptest details
authorYi Fan Yu <yifan.yu@windriver.com>
Thu, 1 Apr 2021 17:01:41 +0000 (13:01 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Apr 2021 14:27:43 +0000 (15:27 +0100)
Some intermittent failures in valgrind are hard
reproduce.

Printing the difference between actual and expected
will make understanding them slightly easier.

[YOCTO #14294]

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/valgrind/valgrind/run-ptest

index e8a1a668fc5b99e89a8baee9cfd0b5f528346932..f37780ef6ae5b0f7ecb49fe7b2ae448b9fb23f19 100755 (executable)
@@ -55,6 +55,16 @@ for i in `cat remove-for-all`; do
    mv $i.IGNORE $i.vgtest;
 done
 
+echo "Failed test details..."
+failed_tests=`grep FAIL: ${LOG} | awk '{print $2}'`
+for test in $failed_tests; do
+    for diff_results in `ls $test*.diff`; do
+        echo $diff_results
+        echo '************'
+        cat  $diff_results
+    done
+done
+
 passed=`grep PASS: ${LOG}|wc -l`
 failed=`grep FAIL: ${LOG}|wc -l`
 skipped=`grep SKIP: ${LOG}|wc -l`