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
aa243abb
Commit
aa243abb
authored
Jun 25, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: fix bug on test_result_proxy
parent
ff05f123
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
erp5/util/benchmark/scalability_launcher.py
erp5/util/benchmark/scalability_launcher.py
+8
-9
erp5/util/taskdistribution/__init__.py
erp5/util/taskdistribution/__init__.py
+2
-2
No files found.
erp5/util/benchmark/scalability_launcher.py
View file @
aa243abb
...
...
@@ -43,10 +43,8 @@ class ScalabilityLauncher(object):
logger
.
addHandler
(
file_handler
)
self
.
log
=
logger
.
info
# Proxy to with erp5 master test_result
result
=
taskdistribution
.
TestResultProxyProxy
(
self
.
__argumentNamespace
.
portal_url
,
self
.
test_
result
=
taskdistribution
.
TestResultProxyProxy
(
self
.
__argumentNamespace
.
portal_url
,
1.0
,
logger
,
self
.
__argumentNamespace
.
test_result_url
,
self
.
__argumentNamespace
.
node_title
,
self
.
__argumentNamespace
.
revision
)
...
...
@@ -100,6 +98,8 @@ class ScalabilityLauncher(object):
"""
Update state of a test_result_line
"""
# TODO : set a line per count value and use setState (?)
#
pass
def
_getNextTest
(
self
):
...
...
@@ -112,14 +112,13 @@ class ScalabilityLauncher(object):
return
next_test
def
run
(
self
):
self
.
log
(
"Scalability Launcher started"
)
max_time
=
10
start_time
=
time
.
time
()
error_message_set
,
exit_status
=
set
(),
0
print
self
.
__argumentNamespace
.
test_result_url
print
self
.
__argumentNamespace
.
erp5_url
print
self
.
__argumentNamespace
.
revision
print
self
.
__argumentNamespace
.
node_title
self
.
log
(
"%s"
,
self
.
test_result
.
isAlive
())
while
time
.
time
()
-
start_time
<
max_time
:
current_test
=
self
.
_getNextTest
()
...
...
erp5/util/taskdistribution/__init__.py
View file @
aa243abb
...
...
@@ -360,10 +360,10 @@ class TestResultProxyProxy(TestResultProxy):
proxy
=
ServerProxy
(
portal_url
,
allow_none
=
True
,
).
portal_task_distribution
).
test_result_module
except
:
raise
ValueError
(
"Cannot instanciate ServerProxy"
)
TestResultProxy
(
proxy
,
retry_time
,
logger
,
test_result_path
,
TestResultProxy
.
__init__
(
self
,
proxy
,
retry_time
,
logger
,
test_result_path
,
node_title
,
revision
)
...
...
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