From: Juha Kosonen Date: Thu, 11 Apr 2019 09:11:14 +0000 (+0300) Subject: Fix KeyError in show_stopper checking X-Git-Tag: 2.0.0~98^2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=253bed77c81387d7603ec30605bc64e2bcbad875;p=validation.git Fix KeyError in show_stopper checking Testcase yaml does not necessarily contain field 'show_stopper'. Change-Id: I88034f2aa4500d02302f31862aa610fbe70a0f27 Signed-off-by: Juha Kosonen --- 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: