Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
b20b9398
Commit
b20b9398
authored
Feb 20, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep almost no tmp files, sometimes there is many Gb in /tmp after one day
parent
c9974645
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
erp5/tests/testERP5TestNode.py
erp5/tests/testERP5TestNode.py
+2
-2
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+1
-1
No files found.
erp5/tests/testERP5TestNode.py
View file @
b20b9398
...
...
@@ -586,7 +586,7 @@ branch = foo
test_node
.
_cleanupLog
()
check
(
set
([
'a_file'
]))
def
test_17_cleanup
Log
Directory
(
self
):
def
test_17_cleanup
Temp
Directory
(
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
.
_cleanup
Log
()
test_node
.
_cleanup
TemporaryFiles
()
check
(
set
([
'something'
]))
\ No newline at end of file
erp5/util/testnode/testnode.py
View file @
b20b9398
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment