From 558bed67565110bb01dc56ef135b86c113b8b32a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 11 Sep 2019 18:03:34 +0200 Subject: don't exit if we fail to prepare a benchmark benchmark.prepare should raise an Exception if it encounters an unrecoverable, intolerable error. --- bench.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bench.py') 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)) -- cgit v1.2.3