mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-09 18:26:10 +00:00
lib: ltemplate - fix handling of CallOnFail
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
3eff4cc9dd
commit
5859c4be6b
@ -122,7 +122,7 @@ def ltemplateTest(script, SkipIfFailed=True, CallOnFail=None, CheckFuncStr=None)
|
||||
if check != True:
|
||||
pytest.skip("Check function '"+CheckFuncStr+"' returned: " + check)
|
||||
|
||||
luInclude(script, CallOnFail)
|
||||
luInclude(script, eval(CallOnFail))
|
||||
numFail = luNumFail() - numEntry
|
||||
if numFail > 0:
|
||||
luShowFail()
|
||||
|
Loading…
Reference in New Issue
Block a user