From ac2286073defc99a65d2273c6ae069a986826a22 Mon Sep 17 00:00:00 2001 From: Frederic Marec Date: Mon, 24 Feb 2020 15:38:49 +0100 Subject: 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 --- conf.d/controller/lua.d/aft.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conf.d/controller/lua.d/aft.lua') 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 -- cgit 1.2.3-korg