Fix KeyError in show_stopper checking 49/549/1
authorJuha Kosonen <juha.kosonen@nokia.com>
Thu, 11 Apr 2019 09:11:14 +0000 (12:11 +0300)
committerJuha Kosonen <juha.kosonen@nokia.com>
Thu, 11 Apr 2019 10:05:56 +0000 (13:05 +0300)
Testcase yaml does not necessarily contain field 'show_stopper'.

Change-Id: I88034f2aa4500d02302f31862aa610fbe70a0f27
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
bluval/bluval.py

index bf5e0c8..c0c16de 100644 (file)
@@ -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: