]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fail CI pipeline when "make test" does not run any system tests
authorMichał Kępień <michal@isc.org>
Fri, 6 Apr 2018 10:09:48 +0000 (12:09 +0200)
committerEvan Hunt <each@isc.org>
Wed, 11 Apr 2018 03:04:56 +0000 (20:04 -0700)
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.

(cherry picked from commit 80ab2c0f220b28e20a6e7c0db0293feb692ac6ea)

.gitlab-ci.yml

index c6df7929b23e0ad0f1c39adac2fbafd161611a98..3c592999f687395541e5cadaae0bf8e89b1dacca 100644 (file)
@@ -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'