From 64553511597c47fb667eac9cc3a540d3a7b99664 Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Mon, 18 Dec 2023 12:26:33 +0100
Subject: [PATCH] WIP: better failure output

---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ccd853d..05354d5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -158,7 +158,7 @@ test:
       - cat hash_pylib
         # Run the actual tests. This starts a new docker container within which
         # the tests run. The return value is stored in .docker/result
-      - /bin/sh ./run.sh
+      - /bin/sh ./run.sh | tee tox_output.log
 
         # Save logs
       - docker logs docker-caosdb-server-1 &> ../caosdb_log.txt
@@ -177,6 +177,9 @@ test:
         # the pyinttest docker writes the return value of the tests into the
         # file result
       - rc=`cat .docker/result`
+      - if [ "$r" != "0" ]; then
+          awk '/=+ FAILURES/, /=+ / && ! /=+ FAILURES/' tox_output.log;
+        fi;
       - exit $rc
   dependencies: [cert]
   timeout: 3h
-- 
GitLab