Skip to contentSkip to conversation

valgrind: print failed ptest details

PATCH New Yi Fan Yu 1 participant 1 message Apr 1, 2021

lore
Share & tools
lore

Yi Fan Yu

author
#0 lore raw

PATCH 1/1 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]

---
 meta/recipes-devtools/valgrind/valgrind/run-ptest | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta/recipes-devtools/valgrind/valgrind/run-ptest +10 -0
index 3e0205fe6e..60d243276b 100755
@@ -56,6 +56,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`
Signature · 1 line
2.29.2