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
1
Issues
1
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
Roque
erp5
Commits
f99003ac
Commit
f99003ac
authored
Jul 16, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Plain Diff
tests: make each SavedTestSuite instance use a different logfile
See merge request
nexedi/erp5!1198
parents
b0e0396c
39b621a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
product/ERP5Type/tests/ERP5TypeTestSuite.py
product/ERP5Type/tests/ERP5TypeTestSuite.py
+5
-0
No files found.
product/ERP5Type/tests/ERP5TypeTestSuite.py
View file @
f99003ac
...
...
@@ -151,6 +151,11 @@ class SavedTestSuite(ERP5TypeTestSuite):
self._portal_id = 'portal_%i' % (random.randint(0, sys.maxint), )
super(SavedTestSuite, self).__init__(*args, **kw)
def getLogDirectoryPath(self, *args, **kw):
if '--save' in args:
args += ('{}_save_{}'.format(args[-1], self.instance), )
return super(SavedTestSuite, self).getLogDirectoryPath(*args, **kw)
def __runUnitTest(self, *args, **kw):
if self.__dict__.has_key("
bt5_path
"):
args = ("
--
bt5_path
=%
s
" % self.bt5_path,) + args
...
...
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