From: Tomas Krizek Date: Thu, 31 Jan 2019 14:33:21 +0000 (+0100) Subject: tests/config: remove obsolete variable X-Git-Tag: v4.0.0~24^2~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52132d6f2ad449f36fe32926cc09007e48d519ae;p=thirdparty%2Fknot-resolver.git tests/config: remove obsolete variable --- diff --git a/modules/hints/tests/hints.test.lua b/modules/hints/tests/hints.test.lua index b60d2a364..f2ae6e25f 100644 --- a/modules/hints/tests/hints.test.lua +++ b/modules/hints/tests/hints.test.lua @@ -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 diff --git a/tests/config/test.cfg b/tests/config/test.cfg index a49c0f4d1..70d36845e 100644 --- a/tests/config/test.cfg +++ b/tests/config/test.cfg @@ -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