aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2023-09-06 13:29:39 -0400
committerDevan Carpenter <devan@taler.net>2023-09-06 16:59:38 -0400
commit2ecd012b569789fa6c6d461fdbbc76473422cf53 (patch)
tree18fc1c1d68e4f7f702dfced417d3724169dd679e /ci
parent3393222d1b70c2647583ad0514a3c9e76e92eb06 (diff)
ci: print all logs from failed test
was previously only printing logs from one subset of tests
Diffstat (limited to 'ci')
-rwxr-xr-xci/jobs/1-test/test.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/ci/jobs/1-test/test.sh b/ci/jobs/1-test/test.sh
index 64be63253..27582dd74 100755
--- a/ci/jobs/1-test/test.sh
+++ b/ci/jobs/1-test/test.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-set -exuo pipefail
+set -evu
./bootstrap
./configure CFLAGS="-ggdb -O0" \
@@ -15,10 +15,13 @@ check_command()
print_logs()
{
- for i in $(cat src/util/test-suite.log | grep '^FAIL:' | cut -d' ' -f 2)
+ for i in src/*/test-suite.log
do
- echo Printing $i.log:
- tail src/util/$i.log
+ FAILURE="$(grep '^FAIL:' ${i} | cut -d' ' -f2)"
+ if [ ! -z "${FAILURE}" ]; then
+ echo "Printing ${FAILURE}.log"
+ tail "$(dirname $i)/${FAILURE}.log"
+ fi
done
}