aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/controller/lua.d/aft.lua
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-08-21 12:53:42 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-08-22 11:24:29 +0200
commit5fc59050cc237f8d79cfdb0f4f32e5778b3afbf7 (patch)
treee76cb2209b8682fa655d6ffdb0e2f4e08186e78c /conf.d/controller/lua.d/aft.lua
parentee15040e18a660bb5fcac87450620b35596db9ad (diff)
Redirect LUA stdout to a file
This is made to have all tests results in 1 place else they will lie in the binder log journal. Change-Id: I60293230bbd8252d1ed947bba7c9583f5957e01e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d/aft.lua')
-rw-r--r--conf.d/controller/lua.d/aft.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua
index 428dd2f..b619b23 100644
--- a/conf.d/controller/lua.d/aft.lua
+++ b/conf.d/controller/lua.d/aft.lua
@@ -46,6 +46,7 @@ end
function _AFT.setOutputFile(filePath)
local file = assert(io.open(filePath, "w+"))
io.output(file)
+ io.stdout = file
end
function _AFT.exitAtEnd(code)