aboutsummaryrefslogtreecommitdiff
path: root/ci/jobs/2-test/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/jobs/2-test/test.sh')
-rwxr-xr-xci/jobs/2-test/test.sh6
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
}