Print warning if the programmer device permissions are incorrect

This commit is contained in:
Matt Mets 2023-03-09 19:35:44 +01:00 committed by Michael Cardell Widerkrantz
parent fe1e2254d2
commit f83f919f9e
No known key found for this signature in database
GPG key ID: D3DB3DDF57E704E5
2 changed files with 21 additions and 12 deletions

View file

@ -67,10 +67,13 @@ def run_tests(test_list: list[Any]) -> bool:
'Failure at test step "{:}"'.format(
test.__name__))
return False
except Exception as e:
except OSError as exp:
print(exp)
sys.exit(1)
except Exception as exp:
print(
'Error while running test step "{:}", exception:{:}'.format(
test.__name__, str(e)))
test.__name__, str(exp)))
return False
return True