sanitycheck: catch ValueErrors when evaulating expressions
Change-Id: Iae4eb0b242427b98dd6515676c024f307446e49d Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
2d9a559df8
commit
c09b4b84fc
1 changed files with 1 additions and 1 deletions
|
@ -1448,7 +1448,7 @@ class TestSuite:
|
|||
if tc.tc_filter:
|
||||
try:
|
||||
res = expr_parser.parse(tc.tc_filter, defconfig)
|
||||
except SyntaxError as se:
|
||||
except (ValueError, SyntaxError) as se:
|
||||
sys.stderr.write("Failed processing %s\n" % tc.inifile)
|
||||
raise se
|
||||
if not res:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue