diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-24 11:39:48 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-24 14:04:11 +0200 |
commit | fa5e03a85309ac5b14eb6ef1b2f211539351a88f (patch) | |
tree | 34d7903f330c40387ad4ccce9b3c5d0c45269f62 /conf.d/controller/lua.d | |
parent | 021609cd6bafc542629c67e5385d890acb751d13 (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: If05a57382879d19fcae33f219141148004f07918
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d')
-rw-r--r-- | conf.d/controller/lua.d/aft.lua | 9 |
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) |