Support Python 3 in the benchmark suite

This commit is contained in:
Sergej Jaskiewicz
2020-02-27 02:55:44 +03:00
parent a9fc2658a7
commit cce9e81f0b
9 changed files with 147 additions and 81 deletions

View File

@@ -111,7 +111,8 @@ class BenchmarkDriver(object):
def run_for_opt_level(self, binary, opt_level, test_filter):
print("testing driver at path: %s" % binary)
names = []
for l in subprocess.check_output([binary, "--list"]).split("\n")[1:]:
output = subprocess.check_output([binary, "--list"], universal_newlines=True)
for l in output.split("\n")[1:]:
m = BENCHMARK_OUTPUT_RE.match(l)
if m is None:
continue