summaryrefslogtreecommitdiffstats
path: root/tests/config
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2020-10-01 15:04:48 +0200
committerPetr Špaček <petr.spacek@nic.cz>2020-10-02 14:18:59 +0200
commit4957b2febf4c0e4eeb1983c6e5f2c648d88ec173 (patch)
treedf0a7b72cfda12711cf1981167658d5a765a8111 /tests/config
parentMerge branch 'doh-endpoint-dns-query' into 'master' (diff)
downloadknot-resolver-4957b2febf4c0e4eeb1983c6e5f2c648d88ec173.tar.xz
knot-resolver-4957b2febf4c0e4eeb1983c6e5f2c648d88ec173.zip
meson: mark skipped config tests as skipped
Using exit code 77 lets meson know to classify tests as skipped instead of failed or passed. Works since meson 0.37. https://mesonbuild.com/Unit-tests.html#skipped-tests-and-hard-errors
Diffstat (limited to 'tests/config')
-rw-r--r--tests/config/worker.test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/config/worker.test.lua b/tests/config/worker.test.lua
index 6133d6c8..756bb5fb 100644
--- a/tests/config/worker.test.lua
+++ b/tests/config/worker.test.lua
@@ -1,8 +1,8 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
-- check prerequisites
if not worker.bg_worker then
- pass('skipping worker test because it doesnt support background worker')
- done()
+ -- skipping worker test because it doesnt support background worker
+ os.exit(77)
else
-- import primitives for synchronisation
local monotime = require('cqueues').monotime