From 5fc59050cc237f8d79cfdb0f4f32e5778b3afbf7 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 21 Aug 2018 12:53:42 +0200 Subject: 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 --- conf.d/controller/lua.d/aft.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'conf.d/controller/lua.d') 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) -- cgit 1.2.3-korg