summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-09-10 10:36:47 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-09-10 10:36:47 +0100
commit65b03cd7e7c56b490895cd0f41687863beadea3e (patch)
tree07b752ce7e458802929c473560404a7fcd63636b /test
parent8128b539535d3c8df974ac2fee7d673f5d3c5502 (diff)
downloadrspamd-65b03cd7e7c56b490895cd0f41687863beadea3e.tar.gz
rspamd-65b03cd7e7c56b490895cd0f41687863beadea3e.zip
[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.
Diffstat (limited to 'test')
-rw-r--r--test/functional/lua/miltertest/combined.lua4
-rw-r--r--test/functional/lua/miltertest/mt1.lua4
-rw-r--r--test/functional/lua/miltertest/mt2.lua4
-rw-r--r--test/functional/lua/miltertest/mt3.lua4
-rw-r--r--test/functional/lua/miltertest/mt4.lua4
5 files changed, 10 insertions, 10 deletions
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()