From 80ab2c0f220b28e20a6e7c0db0293feb692ac6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Fri, 6 Apr 2018 12:09:48 +0200 Subject: [PATCH] Fail CI pipeline when "make test" does not run any system tests Apart from ensuring "make test" returns 0, also check whether any system test output was generated as a result of running it. This prevents the CI job running system tests from succeeding unless it actually tests something. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08a189ddc3..ab8418eb2a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -100,7 +100,8 @@ stages: - rm -rf .ccache - bash -x bin/tests/system/ifconfig.sh up script: - - cd bin/tests && make -j${TEST_PARALLEL_JOBS:-1} -k test V=1 + - ( cd bin/tests && make -j${TEST_PARALLEL_JOBS:-1} -k test V=1 ) + - test -s bin/tests/system/systests.output artifacts: untracked: true expire_in: '1 week'