mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1069689, part 2 - Don't generate a regexp then throw it away. r=jmaher
This commit is contained in:
parent
28ff62477b
commit
ef73dc680f
@ -312,10 +312,11 @@ def processLeakLog(leakLogFile, leakThreshold = 0):
|
||||
log.info("TEST-INFO | leakcheck | threshold set at %d bytes" % leakThreshold)
|
||||
|
||||
(leakLogFileDir, leakFileBase) = os.path.split(leakLogFile)
|
||||
fileNameRegExp = re.compile(r"_([a-z]*)_pid\d*$")
|
||||
if leakFileBase[-4:] == ".log":
|
||||
leakFileBase = leakFileBase[:-4]
|
||||
fileNameRegExp = re.compile(r"_([a-z]*)_pid\d*.log$")
|
||||
else:
|
||||
fileNameRegExp = re.compile(r"_([a-z]*)_pid\d*$")
|
||||
|
||||
for fileName in os.listdir(leakLogFileDir):
|
||||
if fileName.find(leakFileBase) != -1:
|
||||
|
Loading…
Reference in New Issue
Block a user