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




commit 83e614501aee054e6e51eb18d4e1c5922d9460bc
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 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed51dc89..624827ff 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,5 +20,9 @@ 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
+    -  >
+    make check
+    if [ $? -gt 0 ]; then
+      echo "Unit tests fail" && cat tests/test-suite.log && exit 1
+    fi
     - echo "Unit tests finished."


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