mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
bug 569965 - automationutils.processLeakLog() should learn not to TEST-UNEXPECTED-FAIL every single object line when there are lots. r=philor
--HG-- extra : rebase_source : 4ce122222020d522f742b7e77bfacafe8f7f90bc
This commit is contained in:
parent
9422e7d0e6
commit
8ebae2dc0a
@ -263,6 +263,7 @@ def processSingleLeakFile(leakLogFileName, PID, processType, leakThreshold):
|
||||
seenTotal = False
|
||||
crashedOnPurpose = False
|
||||
prefix = "TEST-PASS"
|
||||
numObjects = 0
|
||||
for line in leaks:
|
||||
if line.find("purposefully crash") > -1:
|
||||
crashedOnPurpose = True
|
||||
@ -304,6 +305,10 @@ def processSingleLeakFile(leakLogFileName, PID, processType, leakThreshold):
|
||||
else:
|
||||
instance = "instance"
|
||||
rest = ""
|
||||
numObjects += 1
|
||||
if numObjects > 5:
|
||||
# don't spam brief tinderbox logs with tons of leak output
|
||||
prefix = "TEST-INFO"
|
||||
log.info("%(prefix)s %(process)s| automationutils.processLeakLog() | leaked %(numLeaked)d %(instance)s of %(name)s "
|
||||
"with size %(size)s bytes%(rest)s" %
|
||||
{ "prefix": prefix,
|
||||
|
Loading…
x
Reference in New Issue
Block a user