aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/controller/lua.d/aft.lua
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-10-24 11:39:48 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-24 13:27:48 +0200
commit23c5406d8243e647201533ecfb46a43a3470fb1d (patch)
tree5488f32f380a81c273a5013cd39f8b4e28661a63 /conf.d/controller/lua.d/aft.lua
parent3be1daaa166fd04bf7870040ca77da3ae1ea02b8 (diff)
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d/aft.lua')
-rw-r--r--conf.d/controller/lua.d/aft.lua9
1 files changed, 8 insertions, 1 deletions
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("<LAVA_SIGNAL_TESTSET START "..fileName..">")
+ end
end
function _AFT.exitAtEnd(code)
@@ -430,8 +434,8 @@ function _AFT.describe(testName, testFunction, setUp, tearDown)
end
end
- print('<LAVA_SIGNAL_TESTCASE TEST_CASE_ID='..testName..' RESULT='..result..'>')
print('<LAVA_SIGNAL_ENDTC '..testName..'>')
+ print('<LAVA_SIGNAL_TESTCASE TEST_CASE_ID='..testName..' RESULT='..result..'>')
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("<LAVA_SIGNAL_TESTSET STOP>")
+ end
end
elseif type(confArgs.files) == 'string' then
_AFT.setOutputFile(confArgs.files)