[gnome-commander/ci_next_test: 1/2] Evaluate return value of unit tests




commit 947b1881d4191af037c8cf8be67e02473a1e8123
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Jan 30 19:59:56 2022 +0100

    Evaluate return value of unit tests

 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed51dc89..66c64540 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,5 +20,5 @@ build-job:       # This job runs in the build stage, which runs first.
     - ./autogen.sh
     - make
     - echo "Compile complete. Starting Unit test phase..."
-    - make check || echo "Unit tests fail" && cat tests/test-suite.log && exit 1
-    - echo "Unit tests finished."
+    - make check; exit_code=$?; if [ "$exit_code" != "0" ]; then echo "Unit tests failed."; cat 
tests/test-suite.log; exit 1; fi;
+    - echo "Unit tests passed."


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]