sanitycheck: catch ValueErrors when evaulating expressions

Change-Id: Iae4eb0b242427b98dd6515676c024f307446e49d
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-04-18 11:46:07 -07:00 committed by Anas Nashif
commit c09b4b84fc

View file

@ -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: