exchange

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

commit 2ecd012b569789fa6c6d461fdbbc76473422cf53
parent 3393222d1b70c2647583ad0514a3c9e76e92eb06
Author: Devan Carpenter <devan@taler.net>
Date:   Wed,  6 Sep 2023 13:29:39 -0400

ci: print all logs from failed test

was previously only printing logs from one subset of tests

Diffstat:
Mci/jobs/1-test/test.sh | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

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