diff options
author | Devan Carpenter <devan@taler.net> | 2023-09-04 13:41:55 -0400 |
---|---|---|
committer | Devan Carpenter <devan@taler.net> | 2023-09-04 14:24:23 -0400 |
commit | 11ae7c42c5be25bd952a52c9678d15d22966f8ab (patch) | |
tree | 23347bb16af10b25ee0626e6c6553483976c4ee1 /ci/jobs/1-test/test.sh | |
parent | 2c3a26363565f64b5d6acb8e736af66cebfd46d6 (diff) | |
download | exchange-11ae7c42c5be25bd952a52c9678d15d22966f8ab.tar.xz |
ci: print test logs upon failure
Diffstat (limited to 'ci/jobs/1-test/test.sh')
-rwxr-xr-x | ci/jobs/1-test/test.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/ci/jobs/1-test/test.sh b/ci/jobs/1-test/test.sh index 20685d8e4..64be63253 100755 --- a/ci/jobs/1-test/test.sh +++ b/ci/jobs/1-test/test.sh @@ -7,4 +7,22 @@ set -exuo pipefail --disable-doc make make install -make check + +check_command() +{ + make check +} + +print_logs() +{ + for i in $(cat src/util/test-suite.log | grep '^FAIL:' | cut -d' ' -f 2) + do + echo Printing $i.log: + tail src/util/$i.log + done +} + +if ! check_command ; then + print_logs + exit 1 +fi |