]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
renamed TEST env variable to KRESD_NO_LISTEN
authorMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 24 Nov 2017 03:31:55 +0000 (19:31 -0800)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 24 Nov 2017 03:31:55 +0000 (19:31 -0800)
daemon/lua/config.lua
tests/config/runtest.sh

index f8769017ba2e9c7bf825cb62aded23233f6a809f..cc6e2f2f23afbc2a75066c3881024dfa44068761 100644 (file)
@@ -1,5 +1,5 @@
 -- Listen on localhost
-if not next(net.list()) and not env.TEST then
+if not next(net.list()) and not env.KRESD_NO_LISTEN then
        local ok, err = pcall(net.listen, '127.0.0.1')
        if not ok then
                error('bind to 127.0.0.1@53 '..err)
index 1587931922c664cef1576fa66490c09a13ecff99..6f4b3809b22ff51a4ca62c6ab25c7ca689552be1 100755 (executable)
@@ -8,4 +8,4 @@ trap finish EXIT
 echo "config-test: ${2}"
 cp tests/config/${2}/* ${TMP_RUNDIR}/
 cp tests/config/test_utils.lua ${TMP_RUNDIR}/
-TEST=1 ${1} -f 1 -c test.cfg ${TMP_RUNDIR}
\ No newline at end of file
+KRESD_NO_LISTEN=1 ${1} -f 1 -c test.cfg ${TMP_RUNDIR}
\ No newline at end of file