From fee3c295a2bffb48e567ac94aee30d3c9e271def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Mon, 20 Jul 2020 19:09:44 +0200 Subject: [PATCH] Fix test262 excludelist updater (#4023) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous fix was buggy, header and footer shouldn't be duplicated. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu --- tools/runners/run-test-suite-test262.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/runners/run-test-suite-test262.py b/tools/runners/run-test-suite-test262.py index 2dd3fce92..eb02073f3 100755 --- a/tools/runners/run-test-suite-test262.py +++ b/tools/runners/run-test-suite-test262.py @@ -128,10 +128,9 @@ def update_exclude_list(args): lines = exclude_file.readlines() exclude_file.seek(0) exclude_file.truncate() - exclude_file.write('\n') - exclude_file.write('\n') - for line in lines: + # Skip the last line "" to be able to insert new failing tests. + for line in lines[:-1]: match = re.match(r" ", line) if match: test = match.group(1)