From b20b93981625f487879fed19fc35d480a2ef04f6 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 20 Feb 2013 12:05:18 +0100
Subject: [PATCH] keep almost no tmp files, sometimes there is many Gb in /tmp
 after one day

---
 erp5/tests/testERP5TestNode.py | 4 ++--
 erp5/util/testnode/testnode.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/erp5/tests/testERP5TestNode.py b/erp5/tests/testERP5TestNode.py
index 4f6210d658..3bbbbeab30 100644
--- a/erp5/tests/testERP5TestNode.py
+++ b/erp5/tests/testERP5TestNode.py
@@ -586,7 +586,7 @@ branch = foo
     test_node._cleanupLog()
     check(set(['a_file']))
 
-  def test_17_cleanupLogDirectory(self):
+  def test_17_cleanupTempDirectory(self):
     # Make sure that we are able to cleanup old temp folders
     test_node = self.getTestNode()
     temp_directory = self.system_temp_folder
@@ -605,5 +605,5 @@ branch = foo
     check(set(['buildoutA', 'something', 'tmpC']))
     # then we set keep time to 0, folder will be deleted
     test_node.max_temp_time = 0
-    test_node._cleanupLog()
+    test_node._cleanupTemporaryFiles()
     check(set(['something']))
\ No newline at end of file
diff --git a/erp5/util/testnode/testnode.py b/erp5/util/testnode/testnode.py
index 4da0c846f2..6f6c131f44 100644
--- a/erp5/util/testnode/testnode.py
+++ b/erp5/util/testnode/testnode.py
@@ -45,7 +45,7 @@ from erp5.util import taskdistribution
 DEFAULT_SLEEP_TIMEOUT = 120 # time in seconds to sleep
 MAX_LOG_TIME = 15 # time in days we should keep logs that we can see through
                   # httd
-MAX_TEMP_TIME = 5 # time in days we should keep temp files
+MAX_TEMP_TIME = 0.01 # time in days we should keep temp files
 supervisord_pid_file = None
 
 PROFILE_PATH_KEY = 'profile_path'
-- 
2.30.9