aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-11 18:03:34 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-11 19:08:13 +0200
commit558bed67565110bb01dc56ef135b86c113b8b32a (patch)
tree3657df330cde2fdb14dc00a5b117e16ef4957111 /bench.py
parent84374b4b4e41c4bb7896092c10098b5e6b5f68c1 (diff)
downloadallocbench-558bed67565110bb01dc56ef135b86c113b8b32a.tar.gz
allocbench-558bed67565110bb01dc56ef135b86c113b8b32a.zip
don't exit if we fail to prepare a benchmark
benchmark.prepare should raise an Exception if it encounters an unrecoverable, intolerable error.
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index 02e95c7..a20c566 100755
--- a/bench.py
+++ b/bench.py
@@ -159,7 +159,13 @@ def main():
bench = getattr(bench_module, bench)
print_status("Preparing", bench.name, "...")
- bench.prepare()
+ try:
+ bench.prepare()
+ except Exception:
+ print_error(traceback.format_exc())
+ print_error(f"Skipping {bench}! Preparing failed.")
+ continue
+
if args.analyze:
print_status("Analysing {} ...".format(bench))