aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/project')
-rw-r--r--conf.d/project/etc/test-config.json2
-rw-r--r--conf.d/project/lua.d/aft.lua8
2 files changed, 7 insertions, 3 deletions
diff --git a/conf.d/project/etc/test-config.json b/conf.d/project/etc/test-config.json
index aee7857..fa26c5f 100644
--- a/conf.d/project/etc/test-config.json
+++ b/conf.d/project/etc/test-config.json
@@ -16,7 +16,7 @@
"action": "lua://AFT#_launch_test",
"args": {
"trace": "hello",
- "files": ["helloworld.lua"]
+ "files": "helloworld.lua"
}
}
}
diff --git a/conf.d/project/lua.d/aft.lua b/conf.d/project/lua.d/aft.lua
index 28d8185..43ea15c 100644
--- a/conf.d/project/lua.d/aft.lua
+++ b/conf.d/project/lua.d/aft.lua
@@ -347,8 +347,12 @@ function _launch_test(context, args)
_AFT.context = context
AFB:servsync(_AFT.context, "monitor", "set", { verbosity = "debug" })
AFB:servsync(_AFT.context, "monitor", "trace", { add = { api = args.trace, request = "vverbose", daemon = "vverbose", event = "push_after" }})
- for _,f in pairs(args.files) do
- dofile('var/'..f)
+ if args.files and type(args.files) == 'table' then
+ for _,f in pairs(args.files) do
+ dofile('var/'..f)
+ end
+ elseif type(args.files) == 'string' then
+ dofile('var/'..args.files)
end
lu.LuaUnit:runSuiteByInstances(_AFT.tests_list)