systemc: Abort verify.py if no tests were selected.
The various phases assume there are at least some tests, and if there are none they may try to run malformed commands. Change-Id: I041d35c504da57b830c490651ab1b3c98e0288ca Reviewed-on: https://gem5-review.googlesource.com/12273 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -512,6 +512,10 @@ with open(json_path) as f:
|
||||
test_data.iteritems() if eval(filt, dict(props))
|
||||
}
|
||||
|
||||
if len(filtered_tests) == 0:
|
||||
print('All tests were filtered out.')
|
||||
exit()
|
||||
|
||||
if main_args.list:
|
||||
for target, props in sorted(filtered_tests.iteritems()):
|
||||
print('%s.%s' % (target, main_args.flavor))
|
||||
|
||||
Reference in New Issue
Block a user