be more liberal with respect to lsof checks because jenkins keeps some files open
This commit is contained in:
parent
2a7c79dbf5
commit
377f63085a
|
@ -36,7 +36,7 @@ def getopenfiles(out):
|
|||
def check_open_files(config):
|
||||
out2 = py.process.cmdexec("lsof -p %d" % pid)
|
||||
lines2 = getopenfiles(out2)
|
||||
if len(lines2) > config._numfiles + 1:
|
||||
if len(lines2) > config._numfiles + 3:
|
||||
error = []
|
||||
error.append("***** %s FD leackage detected" %
|
||||
(len(lines2)-config._numfiles))
|
||||
|
|
Loading…
Reference in New Issue