Fix test262 excludelist updater (#4023)

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
This commit is contained in:
Csaba Osztrogonác 2020-07-20 19:09:44 +02:00 committed by GitHub
parent 39cb67397d
commit fee3c295a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,10 +128,9 @@ def update_exclude_list(args):
lines = exclude_file.readlines()
exclude_file.seek(0)
exclude_file.truncate()
exclude_file.write('<?xml version="1.0" encoding="utf-8" ?>\n')
exclude_file.write('<excludeList>\n')
for line in lines:
# Skip the last line "</excludeList>" to be able to insert new failing tests.
for line in lines[:-1]:
match = re.match(r" <test id=\"(\S*)\">", line)
if match:
test = match.group(1)