From 65b03cd7e7c56b490895cd0f41687863beadea3e Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Mon, 10 Sep 2018 10:36:47 +0100 Subject: [PATCH] [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. --- test/functional/lua/miltertest/combined.lua | 4 ++-- test/functional/lua/miltertest/mt1.lua | 4 ++-- test/functional/lua/miltertest/mt2.lua | 4 ++-- test/functional/lua/miltertest/mt3.lua | 4 ++-- test/functional/lua/miltertest/mt4.lua | 4 ++-- 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() -- 2.39.5