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:
committed by
GitHub
parent
39cb67397d
commit
fee3c295a2
@@ -128,10 +128,9 @@ def update_exclude_list(args):
|
|||||||
lines = exclude_file.readlines()
|
lines = exclude_file.readlines()
|
||||||
exclude_file.seek(0)
|
exclude_file.seek(0)
|
||||||
exclude_file.truncate()
|
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)
|
match = re.match(r" <test id=\"(\S*)\">", line)
|
||||||
if match:
|
if match:
|
||||||
test = match.group(1)
|
test = match.group(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user