зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1547086 Part 1 - Improve import-test.py, and regenerate received/reftest.list. r=dbaron
import.log and reftest.list are generated automatically. I run import-test.py on Linux, and the filenames in import.log are not sorted properly, so I make them sort case-insensitively to reproduce the exact same order in import.log. Differential Revision: https://phabricator.services.mozilla.com/D29064 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
cb74e98178
Коммит
87fb261ec5
|
@ -9,6 +9,7 @@ import xml.dom.minidom
|
||||||
import html5lib
|
import html5lib
|
||||||
import fnmatch
|
import fnmatch
|
||||||
import shutil
|
import shutil
|
||||||
|
import string
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
@ -158,7 +159,7 @@ def copy_support_files(test, dirname):
|
||||||
if not os.path.exists(support_dir):
|
if not os.path.exists(support_dir):
|
||||||
return
|
return
|
||||||
for dirpath, dirnames, filenames in os.walk(support_dir):
|
for dirpath, dirnames, filenames in os.walk(support_dir):
|
||||||
for srcname in filenames:
|
for srcname in sorted(filenames, key=string.lower):
|
||||||
if srcname == "LOCK":
|
if srcname == "LOCK":
|
||||||
continue
|
continue
|
||||||
full_srcname = os.path.join(dirpath, srcname)
|
full_srcname = os.path.join(dirpath, srcname)
|
||||||
|
@ -346,7 +347,13 @@ def main():
|
||||||
add_test_items(t)
|
add_test_items(t)
|
||||||
|
|
||||||
listfile = open(os.path.join(gDestPath, "reftest.list"), "wb")
|
listfile = open(os.path.join(gDestPath, "reftest.list"), "wb")
|
||||||
listfile.write("# THIS FILE IS AUTOGENERATED BY {0}\n# DO NOT EDIT!\n".format(os.path.basename(__file__)))
|
listfile.write(
|
||||||
|
"""# THIS FILE IS AUTOGENERATED BY {0}
|
||||||
|
# DO NOT EDIT!!!
|
||||||
|
# To update the test expectations, please edit failures.list, and rerun
|
||||||
|
# {0} locally on web platform tests repository against the
|
||||||
|
# revision listed at the beginning of received/import.log.\n\n"""\
|
||||||
|
.format(os.path.basename(__file__)))
|
||||||
lastDefaultPreferences = None
|
lastDefaultPreferences = None
|
||||||
for test in tests:
|
for test in tests:
|
||||||
defaultPreferences = gDefaultPreferences.get(test[1].split("/")[0], None)
|
defaultPreferences = gDefaultPreferences.get(test[1].split("/")[0], None)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Importing revision: 15f199c91a72b0d51bf0a12b3b77827ecb5051ff
|
Importing revision: 15f199c91a72b0d51bf0a12b3b77827ecb5051ff
|
||||||
from repository: https://github.com/neerjapancholi/web-platform-tests.git
|
from repository: https://github.com/web-platform-tests/wpt.git
|
||||||
Importing css-conditional/OWNERS to css-conditional/OWNERS
|
Importing css-conditional/OWNERS to css-conditional/OWNERS
|
||||||
Importing css-conditional/at-media-whitespace-optional-001.html to css-conditional/at-media-whitespace-optional-001.html
|
Importing css-conditional/at-media-whitespace-optional-001.html to css-conditional/at-media-whitespace-optional-001.html
|
||||||
Importing css-conditional/reference/background-lime.html to css-conditional/reference/background-lime.html
|
Importing css-conditional/reference/background-lime.html to css-conditional/reference/background-lime.html
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# THIS FILE IS AUTOGENERATED BY import-tests.py
|
# THIS FILE IS AUTOGENERATED BY import-tests.py
|
||||||
# DO NOT EDIT!
|
# DO NOT EDIT!!!
|
||||||
|
# To update the test expectations, please edit failures.list, and rerun
|
||||||
|
# import-tests.py locally on web platform tests repository against the
|
||||||
|
# revision listed at the beginning of received/import.log.
|
||||||
|
|
||||||
== css-conditional/at-media-whitespace-optional-001.html css-conditional/reference/background-lime.html
|
== css-conditional/at-media-whitespace-optional-001.html css-conditional/reference/background-lime.html
|
||||||
== css-conditional/at-media-whitespace-optional-002.html css-conditional/reference/background-lime.html
|
== css-conditional/at-media-whitespace-optional-002.html css-conditional/reference/background-lime.html
|
||||||
== css-conditional/at-supports-001.html css-conditional/at-supports-001-ref.html
|
== css-conditional/at-supports-001.html css-conditional/at-supports-001-ref.html
|
||||||
|
|
Загрузка…
Ссылка в новой задаче