]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests/config: remove obsolete variable
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 31 Jan 2019 14:33:21 +0000 (15:33 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:41:53 +0000 (10:41 +0100)
modules/hints/tests/hints.test.lua
tests/config/test.cfg

index b60d2a364ef62236c182ebd6d2863c75eb52372d..f2ae6e25f7bf63e904a83fee1b7418d2fb549fda 100644 (file)
@@ -16,7 +16,7 @@ end
 -- test loading from config file
 local function test_custom()
        -- load custom root hints file with fake ip address for a.root-server.net
-       local err_msg = hints.root_file(TEST_DIR .. 'hints_test.zone')
+       local err_msg = hints.root_file('hints_test.zone')
        same(err_msg, '', 'load root hints from file')
 
        -- get loaded root hints and change names to lowercase
index a49c0f4d17249ed0d3493da0d977af783e186b94..70d36845eebe41895820f8bb869e23ad87e74fde 100644 (file)
@@ -1,5 +1,5 @@
+-- modify path to be able to load testing modules
 package.path = package.path .. ';' .. env.SOURCE_PATH .. '/?.lua'
-TEST_DIR = env.TEST_FILE:match('(.*/)')
 
 -- export testing module in globals
 local tapered = require('tapered.src.tapered')
@@ -24,4 +24,4 @@ if tests then
                end
                done()
        end)
-end
\ No newline at end of file
+end