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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
924cf90a
Commit
924cf90a
authored
Jun 15, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runUnitTest: include pid in the log file when running multiple nodes
This helps debugging concurrency problems
parent
0f502bdc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5Type/tests/runUnitTest.py
product/ERP5Type/tests/runUnitTest.py
+4
-1
No files found.
product/ERP5Type/tests/runUnitTest.py
View file @
924cf90a
...
@@ -557,8 +557,11 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
...
@@ -557,8 +557,11 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
# On recent Zope, ZopeTestCase does not have any logging facility.
# On recent Zope, ZopeTestCase does not have any logging facility.
# So we must emulate the usual Zope startup code to catch log messages.
# So we must emulate the usual Zope startup code to catch log messages.
from
ZConfig.matcher
import
SectionValue
from
ZConfig.matcher
import
SectionValue
logging_format
=
'%(asctime)s.%(msecs)03d %(levelname)s %(name)s %(message)s'
if
os
.
environ
.
get
(
'activity_node'
):
logging_format
=
'%(process)d '
+
logging_format
section
=
SectionValue
({
'dateformat'
:
'%Y-%m-%d %H:%M:%S'
,
section
=
SectionValue
({
'dateformat'
:
'%Y-%m-%d %H:%M:%S'
,
'format'
:
'%(asctime)s.%(msecs)03d %(levelname)s %(name)s %(message)s'
,
'format'
:
logging_format
,
'level'
:
logging
.
INFO
,
'level'
:
logging
.
INFO
,
'path'
:
os
.
environ
[
'EVENT_LOG_FILE'
],
'path'
:
os
.
environ
[
'EVENT_LOG_FILE'
],
'max_size'
:
None
,
'max_size'
:
None
,
...
...
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