diff options
| author | Simone Weiß <simone.p.weiss@posteo.com> | 2024-02-06 06:42:14 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-08 10:53:13 +0000 |
| commit | 20b1e729e1b4d39c245b4e12729f239ff4342062 (patch) | |
| tree | 6b72e31a4a0dada07ba51d84fee825efbaac0ac6 | |
| parent | 81d90fc81c093ecdd99a00382b2c85a3a4c429f2 (diff) | |
| download | poky-20b1e729e1b4d39c245b4e12729f239ff4342062.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-support/gnutls/gnutls/run-ptest | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/gnutls/run-ptest b/meta/recipes-support/gnutls/gnutls/run-ptest index 84948f487d..17e26eae70 100644 --- a/meta/recipes-support/gnutls/gnutls/run-ptest +++ b/meta/recipes-support/gnutls/gnutls/run-ptest | |||
| @@ -58,6 +58,8 @@ cd tests | |||
| 58 | max_njobs=$(grep -c ^processor /proc/cpuinfo) | 58 | max_njobs=$(grep -c ^processor /proc/cpuinfo) |
| 59 | njobs=0 | 59 | njobs=0 |
| 60 | 60 | ||
| 61 | set +e | ||
| 62 | |||
| 61 | for t in *; do | 63 | for t in *; do |
| 62 | [ -x $t ] || continue | 64 | [ -x $t ] || continue |
| 63 | [ -f $t ] || continue | 65 | [ -f $t ] || continue |
| @@ -80,6 +82,14 @@ passed=$(grep -c PASS ${LOG}) | |||
| 80 | failed=$(grep -c FAIL ${LOG}) | 82 | failed=$(grep -c FAIL ${LOG}) |
| 81 | total=$(expr ${passed} + ${failed} + ${skipped}) | 83 | total=$(expr ${passed} + ${failed} + ${skipped}) |
| 82 | 84 | ||
| 85 | if [ ${failed} -ne 0 ]; then | ||
| 86 | echo | ||
| 87 | echo "Tests failed for gnutls, log is:" | ||
| 88 | echo "--------------------" | ||
| 89 | cat ${LOG} | ||
| 90 | echo | ||
| 91 | fi | ||
| 92 | |||
| 83 | echo | 93 | echo |
| 84 | echo "gnutls test summary:" | 94 | echo "gnutls test summary:" |
| 85 | echo "--------------------" | 95 | echo "--------------------" |
