aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2020-02-24 15:38:49 +0100
committerFrédéric Marec <frederic.marec@iot.bzh>2020-02-24 15:02:33 +0000
commitac2286073defc99a65d2273c6ae069a986826a22 (patch)
tree8834de7c76978c81bd46a1fb8863eda354ecbce1 /conf.d
parent205c8202e58b07cf300da67ca1db777002f2bff4 (diff)
Change skip test verb
Skip test was before under condition and it was evaluating the test before skipping it. Change is to skip the test without any previous evaluation to avoid failure return. Bug-AGL: SPEC-3198 Change-Id: I0a3d2d0f9adb8680370b237151b84e4ab0f761a3 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/controller/lua.d/aft.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua
index a197219..91b9086 100644
--- a/conf.d/controller/lua.d/aft.lua
+++ b/conf.d/controller/lua.d/aft.lua
@@ -364,9 +364,9 @@ end
function _AFT.assertVerbSkipped(api, verb, args, cb, msg)
if(msg) then
- lu.skipIf(not _AFT.assertVerb(api, verb, args, cb), "Test is skipped because "..msg)
+ lu.skip("Test ("..api..", "..verb..", "..args..", "..cb..") is skipped because "..msg)
else
- lu.skipIf(not _AFT.assertVerb(api, verb, args, cb), "Test is skipped")
+ lu.skip("Test ("..api..", "..verb..", "..args..", "..cb..") is skipped")
end
end