diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-11 18:03:34 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-11 19:08:13 +0200 |
| commit | 558bed67565110bb01dc56ef135b86c113b8b32a (patch) | |
| tree | 3657df330cde2fdb14dc00a5b117e16ef4957111 /bench.py | |
| parent | 84374b4b4e41c4bb7896092c10098b5e6b5f68c1 (diff) | |
| download | allocbench-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-x | bench.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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)) |
