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
amrani
erp5
Commits
88161579
Commit
88161579
authored
Jun 25, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: add TestResult features
parent
020d0bde
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
erp5/util/benchmark/scalability_launcher.py
erp5/util/benchmark/scalability_launcher.py
+5
-0
erp5/util/taskdistribution/__init__.py
erp5/util/taskdistribution/__init__.py
+10
-0
No files found.
erp5/util/benchmark/scalability_launcher.py
View file @
88161579
...
@@ -29,7 +29,12 @@ class ScalabilityLauncher(object):
...
@@ -29,7 +29,12 @@ class ScalabilityLauncher(object):
description
=
'Run ERP5 benchmarking scalability suites.'
))
description
=
'Run ERP5 benchmarking scalability suites.'
))
else
:
else
:
self
.
__argumentNamespace
=
namespace
self
.
__argumentNamespace
=
namespace
# Here make a connection with erp5 master
# Here make a connection with erp5 master
portal_url
=
__argumentNamespace
.
test_result_url
result
=
taskdistribution
.
TestResultProxyProxy
(
portal_url
,
1.0
,
self
.
_logger
,
__argumentNamespace
.
test_result_url
,
__argumentNamespace
.
node_title
,
__argumentNamespace
.
revision
)
@
staticmethod
@
staticmethod
def
_addParserArguments
(
parser
):
def
_addParserArguments
(
parser
):
...
...
erp5/util/taskdistribution/__init__.py
View file @
88161579
...
@@ -350,6 +350,16 @@ class TestResultProxy(RPCRetry):
...
@@ -350,6 +350,16 @@ class TestResultProxy(RPCRetry):
if
self
.
_watcher_thread
is
not
None
:
if
self
.
_watcher_thread
is
not
None
:
self
.
_watcher_thread
.
join
()
self
.
_watcher_thread
.
join
()
class
TestResultProxyProxy
(
TestResultProxy
):
"""
A wrapper/proxy to TestResultProxy
"""
def
__init__
(
self
,
portal_url
,
retry_time
,
logger
,
test_result_path
,
node_title
,
revision
):
proxy
=
ServerProxy
(
portal_url
,
allow_none
=
True
)
TestResultProxy
.
__init__
(
proxy
,
retry_time
,
logger
,
test_result_path
,
node_title
,
revision
)
class
ServerProxy
(
xmlrpclib
.
ServerProxy
):
class
ServerProxy
(
xmlrpclib
.
ServerProxy
):
def
__init__
(
self
,
*
args
,
**
kw
):
def
__init__
(
self
,
*
args
,
**
kw
):
...
...
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