diff options
author | Devan Carpenter <devan@taler.net> | 2023-09-08 14:11:37 -0400 |
---|---|---|
committer | Devan Carpenter <devan@taler.net> | 2023-09-08 22:25:35 -0400 |
commit | 0d27232838053b4ecb1c682df8a723cfca382ea4 (patch) | |
tree | 905fa019e95ba844c30854aa16a1c7d05e2e3fef /ci | |
parent | 1015a389c993d6130a5d19817108f27dbc33db5f (diff) | |
download | exchange-0d27232838053b4ecb1c682df8a723cfca382ea4.tar.xz |
ci: improve log print logic in test script
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/jobs/2-test/test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ci/jobs/2-test/test.sh b/ci/jobs/2-test/test.sh index 06bc18097..39fca5c16 100755 --- a/ci/jobs/2-test/test.sh +++ b/ci/jobs/2-test/test.sh @@ -23,11 +23,11 @@ print_logs() { for i in src/*/test-suite.log do - FAILURE="$(grep '^FAIL:' ${i} | cut -d' ' -f2)" - if [ ! -z "${FAILURE}" ]; then + for FAILURE in $(grep '^FAIL:' ${i} | cut -d' ' -f2) + do echo "Printing ${FAILURE}.log" tail "$(dirname $i)/${FAILURE}.log" - fi + done done } |