From 137dd8d1f59a9a0415b0b96b0a9bfe56d58254b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Mon, 23 Sep 2019 22:06:02 +0200 Subject: [PATCH] Fix run-test-suite-test262.py with python3 (#3139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit subprocess.Popen needs universal_newlines=True parameter to open the file in text mode instead of binary mode. With this fix readline() returns str instead of bytes. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu --- tools/runners/run-test-suite-test262.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/runners/run-test-suite-test262.py b/tools/runners/run-test-suite-test262.py index 70fcda89e..6884ef680 100755 --- a/tools/runners/run-test-suite-test262.py +++ b/tools/runners/run-test-suite-test262.py @@ -47,6 +47,7 @@ def run_test262_tests(runtime, engine, path_to_test262): '--command', (runtime + ' ' + engine).strip(), '--tests', path_to_test262, '--summary'], + universal_newlines=True, stdout=subprocess.PIPE) return_code = 0