From 23c5406d8243e647201533ecfb46a43a3470fb1d Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 24 Oct 2018 11:39:48 +0200 Subject: Adds test set markers around each test file launch Fix wrong test case markers order... Result has to be after the test case ending. Change-Id: Iebd604a5d25ef5e12aae7c6be7aaff4daad3d0b9 Signed-off-by: Romain Forlot --- conf.d/controller/lua.d/aft.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua index d38b329..1ff6d25 100644 --- a/conf.d/controller/lua.d/aft.lua +++ b/conf.d/controller/lua.d/aft.lua @@ -63,6 +63,10 @@ function _AFT.setOutputFile(filePath) io.output(file) io.stdout = file + + if _AFT.lavaOutput then + print("") + end end function _AFT.exitAtEnd(code) @@ -430,8 +434,8 @@ function _AFT.describe(testName, testFunction, setUp, tearDown) end end - print('') print('') + print('') end end @@ -681,6 +685,9 @@ function _launch_test(context, confArgs, queryArgs) _AFT.beforeAll = nil _AFT.afterAll = nil _AFT.tests_list = {} + if _AFT.lavaOutput then + print("") + end end elseif type(confArgs.files) == 'string' then _AFT.setOutputFile(confArgs.files) -- cgit 1.2.3-korg