]> 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 02:56:45 +0000 (19:56 -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.

.gitlab-ci.yml

index 08a189ddc3f9d96302a2d2b9cad968d719746faa..ab8418eb2ae1589438ed442d7ecc860a341a10f3 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'