From 5859c4be6ba897d34e388b01b54e7a3e3b81a98c Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Mon, 22 Jan 2018 21:09:02 -0500 Subject: [PATCH] lib: ltemplate - fix handling of CallOnFail Signed-off-by: Lou Berger --- tests/topotests/lib/ltemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/lib/ltemplate.py b/tests/topotests/lib/ltemplate.py index 89fb6a6330..e1d7750a07 100644 --- a/tests/topotests/lib/ltemplate.py +++ b/tests/topotests/lib/ltemplate.py @@ -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() -- 2.39.5