From: Mikhail Galanin Date: Mon, 10 Sep 2018 09:36:47 +0000 (+0100) Subject: [Test] Use dofile instead of require X-Git-Tag: 1.8.0~153^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65b03cd7e7c56b490895cd0f41687863beadea3e;p=rspamd.git [Test] Use dofile instead of require require implies module loading via standard mechanism (which is have to present in LUA_PATH). Here we just load the specific files. --- diff --git a/test/functional/lua/miltertest/combined.lua b/test/functional/lua/miltertest/combined.lua index 964fa878a..69fa2d6f1 100644 --- a/test/functional/lua/miltertest/combined.lua +++ b/test/functional/lua/miltertest/combined.lua @@ -1,7 +1,7 @@ -- Combine tests -require './lib' -require './data' +dofile './lib.lua' +dofile './data.lua' setup() diff --git a/test/functional/lua/miltertest/mt1.lua b/test/functional/lua/miltertest/mt1.lua index 20aa3262f..019a85210 100644 --- a/test/functional/lua/miltertest/mt1.lua +++ b/test/functional/lua/miltertest/mt1.lua @@ -1,7 +1,7 @@ print('Check we will accept a message') -require './lib' -require './data' +dofile './lib.lua' +dofile './data.lua' setup() diff --git a/test/functional/lua/miltertest/mt2.lua b/test/functional/lua/miltertest/mt2.lua index 56ea6f639..1c8fa83d8 100644 --- a/test/functional/lua/miltertest/mt2.lua +++ b/test/functional/lua/miltertest/mt2.lua @@ -1,7 +1,7 @@ print('Check we will reject a message') -require './lib' -require './data' +dofile './lib.lua' +dofile './data.lua' setup() diff --git a/test/functional/lua/miltertest/mt3.lua b/test/functional/lua/miltertest/mt3.lua index 1fc1cc4be..6b30126e5 100644 --- a/test/functional/lua/miltertest/mt3.lua +++ b/test/functional/lua/miltertest/mt3.lua @@ -1,7 +1,7 @@ print('Check we will rewrite subjects') -require './lib' -require './data' +dofile './lib.lua' +dofile './data.lua' setup() diff --git a/test/functional/lua/miltertest/mt4.lua b/test/functional/lua/miltertest/mt4.lua index 0fc69e477..300cf69fb 100644 --- a/test/functional/lua/miltertest/mt4.lua +++ b/test/functional/lua/miltertest/mt4.lua @@ -1,7 +1,7 @@ print('Check we will defer messages') -require './lib' -require './data' +dofile './lib.lua' +dofile './data.lua' setup()