summaryrefslogtreecommitdiff
path: root/src/systemc/tests
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-27 20:39:01 -0700
committerGabe Black <gabeblack@google.com>2018-09-26 00:04:21 +0000
commitd78c8b20ed0809f557dc542dcad4a91642e956f1 (patch)
tree8ba5a30359642e8ef722b4323e1ae6620c2b44d4 /src/systemc/tests
parent1baba25cb9e197b638b5a495e21f4aef628afad6 (diff)
downloadgem5-d78c8b20ed0809f557dc542dcad4a91642e956f1.tar.xz
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>
Diffstat (limited to 'src/systemc/tests')
-rwxr-xr-xsrc/systemc/tests/verify.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index f56c50a79..c2605a2cd 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -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))