test/run_benchmark: avoid Python 3.7+ dependency

This commit is contained in:
Florent Kermarrec 2020-02-03 10:37:10 +01:00
parent d8f3feb971
commit 7e95ecc9a9
1 changed files with 2 additions and 2 deletions

View File

@ -238,8 +238,8 @@ def run_benchmark(cmd_args):
# run as separate process, because else we cannot capture all output from verilator # run as separate process, because else we cannot capture all output from verilator
benchmark_script = os.path.join(os.path.dirname(__file__), 'benchmark.py') benchmark_script = os.path.join(os.path.dirname(__file__), 'benchmark.py')
command = ['python3', benchmark_script, *cmd_args] command = ['python3', benchmark_script, *cmd_args]
proc = subprocess.run(command, capture_output=True, text=True, check=True) proc = subprocess.run(command, stdout=subprocess.PIPE)
return proc.stdout return str(proc.stdout)
def run_benchmarks(configurations): def run_benchmarks(configurations):