mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1253189
part 4 - Add skip.list for skipping imported tests. r=dbaron
MozReview-Commit-ID: 3TpjZRy8rS9 --HG-- extra : rebase_source : 329c5e89d54a33f114d09d69c8d6960e4f15a233
This commit is contained in:
parent
66f45c7a3d
commit
5252f60461
@ -57,6 +57,7 @@ gDefaultPreferences = {
|
||||
|
||||
gLog = None
|
||||
gFailList = {}
|
||||
gSkipList = {}
|
||||
gDestPath = None
|
||||
gSrcPath = None
|
||||
support_dirs_mapped = set()
|
||||
@ -275,20 +276,24 @@ def setup_log():
|
||||
# information about where they came from.
|
||||
gLog = open(os.path.join(gDestPath, "import.log"), "w")
|
||||
|
||||
def read_fail_list():
|
||||
global gFailList
|
||||
def read_fail_and_skip_list():
|
||||
global gFailList, gSkipList
|
||||
dirname = os.path.realpath(__file__).split(os.path.sep)
|
||||
dirname = os.path.sep.join(dirname[:len(dirname)-1])
|
||||
failListFile = open(os.path.join(dirname, "failures.list"), "r")
|
||||
gFailList = [x for x in [x.lstrip().rstrip() for x in failListFile] if bool(x)
|
||||
and not x.startswith("#")]
|
||||
failListFile.close()
|
||||
skipListFile = open(os.path.join(dirname, "skip.list"), "r")
|
||||
gSkipList = [x for x in [x.lstrip().rstrip() for x in skipListFile]
|
||||
if bool(x) and not x.startswith("#")]
|
||||
skipListFile.close()
|
||||
|
||||
def main():
|
||||
global gDestPath, gLog, gTestfiles, gTestFlags, gFailList
|
||||
global gDestPath, gLog, gTestfiles, gTestFlags, gFailList, gSkipList
|
||||
read_options()
|
||||
setup_paths()
|
||||
read_fail_list()
|
||||
read_fail_and_skip_list()
|
||||
setup_log()
|
||||
write_log_header()
|
||||
remove_existing_dirs()
|
||||
@ -322,6 +327,8 @@ def main():
|
||||
test = ["HTTP(../../..)"] + test
|
||||
if testKey in gFailList:
|
||||
test = ["fails"] + test
|
||||
if testKey in gSkipList:
|
||||
test = ["skip"] + test
|
||||
listfile.write(" ".join(test) + "\n")
|
||||
listfile.close()
|
||||
|
||||
|
12
layout/reftests/w3c-css/skip.list
Normal file
12
layout/reftests/w3c-css/skip.list
Normal file
@ -0,0 +1,12 @@
|
||||
# LIST OF REFTEST NEED TO SKIP FROM IMPORTS
|
||||
#
|
||||
# Always consider adding tests to failures.list first if it doesn't
|
||||
# pass. This list should only be used if we are not able to make the
|
||||
# test itself work, e.g. some dynamic tests.
|
||||
#
|
||||
# The syntax of this file is as follows:
|
||||
# 1) All lines marked with a '#' are comments.
|
||||
# 2) A failure is denoted by a path, starting
|
||||
# with module. E.g.:
|
||||
# css3-multicol/block-clip-001.xht
|
||||
|
Loading…
Reference in New Issue
Block a user