Clean up runtime error string handling.

This commit is contained in:
Bob Nystrom
2014-01-20 22:55:11 -08:00
parent 95d239cd21
commit 7b1b39bd2c
6 changed files with 60 additions and 37 deletions
+6 -1
View File
@@ -135,10 +135,15 @@ def run_benchmark_language(benchmark, language):
def run_benchmark(benchmark, languages):
"""Runs one benchmark for the given languages (or all of them)."""
num_languages = 0
for language in LANGUAGES:
if not languages or language[0] in languages:
num_languages += 1
run_benchmark_language(benchmark, language)
graph_results()
if num_languages > 1:
graph_results()
del results[0:len(results)]