[gnome-commander/ci_next_test] Evaluate return value of unit tests
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ci_next_test] Evaluate return value of unit tests
- Date: Sun, 30 Jan 2022 19:21:02 +0000 (UTC)
commit 236526f32ecb4a10c65716d2c66e43f7b2d316b3
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed51dc89..2f7f5a85 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,5 +20,6 @@ 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 || exit_code=$?
+ - if [ "$exit_code" != "0" ]; then echo "Previous command failed"; 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]