exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 11ae7c42c5be25bd952a52c9678d15d22966f8ab
parent 2c3a26363565f64b5d6acb8e736af66cebfd46d6
Author: Devan Carpenter <devan@taler.net>
Date:   Mon,  4 Sep 2023 13:41:55 -0400

ci: print test logs upon failure

Diffstat:
Mci/jobs/1-test/test.sh | 20+++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

diff --git 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