From: Michał Kępień Date: Fri, 6 Apr 2018 10:09:48 +0000 (+0200) Subject: Fail CI pipeline when "make test" does not run any system tests X-Git-Tag: v9.13.0~64^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80ab2c0f220b28e20a6e7c0db0293feb692ac6ea;p=thirdparty%2Fbind9.git 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. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08a189ddc3f..ab8418eb2ae 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'