be more liberal with respect to lsof checks because jenkins keeps some files open

This commit is contained in:
holger krekel 2013-07-29 15:39:24 +02:00
parent 2a7c79dbf5
commit 377f63085a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def getopenfiles(out):
def check_open_files(config): def check_open_files(config):
out2 = py.process.cmdexec("lsof -p %d" % pid) out2 = py.process.cmdexec("lsof -p %d" % pid)
lines2 = getopenfiles(out2) lines2 = getopenfiles(out2)
if len(lines2) > config._numfiles + 1: if len(lines2) > config._numfiles + 3:
error = [] error = []
error.append("***** %s FD leackage detected" % error.append("***** %s FD leackage detected" %
(len(lines2)-config._numfiles)) (len(lines2)-config._numfiles))