From 0abd62a0e7c9e98bcbdb7a8bd3aba5df89b8fa6e Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Fri, 2 Oct 2020 20:32:58 +0200 Subject: Fix a Python 3 bug in the benchmark script --- scripts/benchmark/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/benchmark/utils.py b/scripts/benchmark/utils.py index 11aad805..fe0bd7f7 100644 --- a/scripts/benchmark/utils.py +++ b/scripts/benchmark/utils.py @@ -50,7 +50,8 @@ def run_binary(command, arguments): full_command = command + " " + " ".join(arguments) print("[benchmark] Calling binary: %s" % str(full_command)) try: - return subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE).stdout.read() + result = subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE).stdout.read() + return result.decode("ascii") except OSError as e: print("[benchmark] Error while running the binary, got exception: %s" + str(e)) return False -- cgit v1.2.3