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
e7209de8
Commit
e7209de8
authored
Jul 31, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability/runScalabilityTestSuite: add controls
parent
4dbbbf59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+9
-7
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
e7209de8
...
@@ -53,7 +53,8 @@ def waitFor0PendingActivities(erp5_url, log):
...
@@ -53,7 +53,8 @@ def waitFor0PendingActivities(erp5_url, log):
base64
.
encodestring
(
'%s:%s'
%
(
user
,
password
)).
strip
()}
base64
.
encodestring
(
'%s:%s'
%
(
user
,
password
)).
strip
()}
count
=
0
count
=
0
while
MAX_INSTALLATION_TIME
>
time
.
time
()
-
start_time
:
ok
=
False
while
MAX_INSTALLATION_TIME
>
time
.
time
()
-
start_time
and
not
ok
:
zope_connection
=
getConnection
(
erp5_url
,
log
)
zope_connection
=
getConnection
(
erp5_url
,
log
)
try
:
try
:
count
=
count
+
1
count
=
count
+
1
...
@@ -66,18 +67,19 @@ def waitFor0PendingActivities(erp5_url, log):
...
@@ -66,18 +67,19 @@ def waitFor0PendingActivities(erp5_url, log):
message_list
=
[
s
.
strip
()
for
s
in
message_list_text
[
1
:
-
1
].
split
(
','
)]
message_list
=
[
s
.
strip
()
for
s
in
message_list_text
[
1
:
-
1
].
split
(
','
)]
if
len
(
message_list
)
==
0
:
if
len
(
message_list
)
==
0
:
log
(
"There is no pending activities."
)
log
(
"There is no pending activities."
)
break
ok
=
True
log
(
"There is %d pending activities"
%
len
(
message_list
))
time
.
sleep
(
5
)
#Hack to do not take into account persistent Alarm_installMailServer acitivities
#Hack to do not take into account persistent Alarm_installMailServer acitivities
if
len
(
message_list
)
==
1
:
if
len
(
message_list
)
==
1
:
log
(
"1 pending activity but ok."
)
log
(
"1 pending activity but ok."
)
break
ok
=
True
log
(
"There is %d pending activities"
%
len
(
message_list
))
time
.
sleep
(
5
)
except
:
except
:
time
.
sleep
(
5
)
time
.
sleep
(
5
)
log
(
"Getting activities failed, retry."
)
log
(
"Getting activities failed, retry."
)
if
not
ok
:
raise
ValueError
(
"Cannot waitFor0PendingActivities after %d try (for %s s)"
%
(
count
,
str
(
time
.
time
()
-
start_time
)))
raise
ValueError
(
"Cannot waitFor0PendingActivities after %d try (for %s s)"
%
(
count
,
str
(
time
.
time
()
-
start_time
)))
...
...
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