From 253bed77c81387d7603ec30605bc64e2bcbad875 Mon Sep 17 00:00:00 2001 From: Juha Kosonen Date: Thu, 11 Apr 2019 12:11:14 +0300 Subject: [PATCH] Fix KeyError in show_stopper checking Testcase yaml does not necessarily contain field 'show_stopper'. Change-Id: I88034f2aa4500d02302f31862aa610fbe70a0f27 Signed-off-by: Juha Kosonen --- bluval/bluval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluval/bluval.py b/bluval/bluval.py index bf5e0c8..c0c16de 100644 --- a/bluval/bluval.py +++ b/bluval/bluval.py @@ -34,7 +34,7 @@ def run_testcase(testcase): print('Invoking {}'.format(cmd)) try: status = subprocess.call(cmd, shell=True) - if status != 0 and testcase['show_stopper']: + if status != 0 and show_stopper: print('Show stopper testcase failed') return status except OSError: -- 2.16.6