From 7e95ecc9a95b8a7aee855025e5d5704d43a2efbf Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 3 Feb 2020 10:37:10 +0100 Subject: [PATCH] test/run_benchmark: avoid Python 3.7+ dependency --- test/run_benchmarks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run_benchmarks.py b/test/run_benchmarks.py index da8a6cd..96dc104 100755 --- a/test/run_benchmarks.py +++ b/test/run_benchmarks.py @@ -238,8 +238,8 @@ def run_benchmark(cmd_args): # run as separate process, because else we cannot capture all output from verilator benchmark_script = os.path.join(os.path.dirname(__file__), 'benchmark.py') command = ['python3', benchmark_script, *cmd_args] - proc = subprocess.run(command, capture_output=True, text=True, check=True) - return proc.stdout + proc = subprocess.run(command, stdout=subprocess.PIPE) + return str(proc.stdout) def run_benchmarks(configurations):