From 5f4d4b09eddff68f6b3790fa568608eff6fb3e47 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Wed, 31 Jul 2013 22:36:40 -0700 Subject: [PATCH] When an asmjs benchmark fails, continue to the next one. --- benchmarks/asmjs-apps/harness.py | 9 ++++++--- benchmarks/asmjs-ubench/harness.py | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/benchmarks/asmjs-apps/harness.py b/benchmarks/asmjs-apps/harness.py index c36111e..797d0de 100755 --- a/benchmarks/asmjs-apps/harness.py +++ b/benchmarks/asmjs-apps/harness.py @@ -151,9 +151,12 @@ def BenchmarkJavaScript(options, args): # Don't overwrite args! argv = [] + args argv.extend(['run.js', '--', benchmark.name + '.js', str(factor)]) - t = Exec(argv) - t = t.strip() - print(benchmark.name + '-workload' + str(factor) + ' - ' + t) + try: + t = Exec(argv) + t = t.strip() + print(benchmark.name + '-workload' + str(factor) + ' - ' + t) + except Exception as e: + print('Exception when running ' + benchmark.name + ': ' + str(e)) def main(argv): parser = OptionParser() diff --git a/benchmarks/asmjs-ubench/harness.py b/benchmarks/asmjs-ubench/harness.py index bbabed8..da26107 100755 --- a/benchmarks/asmjs-ubench/harness.py +++ b/benchmarks/asmjs-ubench/harness.py @@ -60,9 +60,12 @@ def BenchmarkJavaScript(options, args): # Don't overwrite args! argv = [] + args argv.extend(['ubench.js', '--', benchmark + '.js', RunFactor]) - t = Exec(argv) - t = t.strip() - print(benchmark + ' - ' + t) + try: + t = Exec(argv) + t = t.strip() + print(benchmark + ' - ' + t) + except Exception as e: + print('Exception when running ' + benchmark.name + ': ' + str(e)) def main(argv): parser = OptionParser()