diff options
m--------- | app-controller-submodule | 0 | ||||
-rw-r--r-- | conf.d/controller/lua.d/aft.lua | 9 |
2 files changed, 7 insertions, 2 deletions
diff --git a/app-controller-submodule b/app-controller-submodule -Subproject 9ba5c8f531fc371d5402ea28467029bd3e95f98 +Subproject e3f2c45eb9c65560f269be9d2a1f4385142c457 diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua index 2c88c61..900f3ca 100644 --- a/conf.d/controller/lua.d/aft.lua +++ b/conf.d/controller/lua.d/aft.lua @@ -580,6 +580,8 @@ end function _launch_test(context, args) _AFT.context = context + local bindingRootDir = AFB:getrootdir() + local loadedfile = nil -- Prepare the tests execution configuring the monitoring and loading -- lua test files to execute in the Framework. @@ -593,12 +595,15 @@ function _launch_test(context, args) end end end + if args.files and type(args.files) == 'table' then for _,f in pairs(args.files) do - dofile('var/'..f) + local cmdHandle = io.popen('find '..bindingRootDir..'-name '..f) + loadedfile = dofile(cmdHandle:read()) end elseif type(args.files) == 'string' then - dofile('var/'..args.files) + local cmdHandle = io.popen('find '..bindingRootDir..'-name '..args.files) + loadedfile = dofile(cmdHandle:read()) end -- Execute the test within a context if given. We assume that the before |