mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
gnutls: print log if ptest fails
There are AB-INT issues with the gnutls tests and the test for naked-alerts is failing. Tweak the run-ptest script to save the error log to obtain more infos for debugging. Related to [YOCTO #15352]. (From OE-Core rev: 9665d272df34bcb2811a2f7a1afccabe4bebc9d1) Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
81d90fc81c
commit
20b1e729e1
@@ -58,6 +58,8 @@ cd tests
|
||||
max_njobs=$(grep -c ^processor /proc/cpuinfo)
|
||||
njobs=0
|
||||
|
||||
set +e
|
||||
|
||||
for t in *; do
|
||||
[ -x $t ] || continue
|
||||
[ -f $t ] || continue
|
||||
@@ -80,6 +82,14 @@ passed=$(grep -c PASS ${LOG})
|
||||
failed=$(grep -c FAIL ${LOG})
|
||||
total=$(expr ${passed} + ${failed} + ${skipped})
|
||||
|
||||
if [ ${failed} -ne 0 ]; then
|
||||
echo
|
||||
echo "Tests failed for gnutls, log is:"
|
||||
echo "--------------------"
|
||||
cat ${LOG}
|
||||
echo
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "gnutls test summary:"
|
||||
echo "--------------------"
|
||||
|
||||
Reference in New Issue
Block a user