summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-08-03 16:49:16 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-08-16 13:52:02 +0000
commitfcb49fe8d3442b5299227279185f143da3e67b69 (patch)
treeeb3ac5a8b66a3a1b345db0858c670b5e8b7b4a79 /conf.d
parent1990ea3677f10bab3dc3cc7b7f8f1c50a399d5d4 (diff)
Search in the binding root dir for lua materialsflounder_5.99.3flounder/5.99.35.99.3
Change-Id: I09f174c99488ff104aaa7995e1575a5e5aa3a0c0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/controller/lua.d/aft.lua9
1 files changed, 7 insertions, 2 deletions
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