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
256d3498
Commit
256d3498
authored
Jun 18, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up
parent
0b962d20
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
erp5/tests/testERP5TestNode.py
erp5/tests/testERP5TestNode.py
+2
-0
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+6
-6
No files found.
erp5/tests/testERP5TestNode.py
View file @
256d3498
...
...
@@ -855,6 +855,8 @@ branch = foo
pass
def
test_zzzz_scalability_19_xxxx
(
self
):
# TODO : fill the dummy slapos answer
# by patching isSoftwareReleaseReady method.
def
patch_createTestResult
(
self
,
revision
,
test_name_list
,
node_title
,
allow_restart
=
False
,
test_title
=
None
,
project_title
=
None
):
test_result_path
=
os
.
path
.
join
(
test_result_path_root
,
test_title
)
...
...
erp5/util/testnode/ScalabilityTestRunner.py
View file @
256d3498
...
...
@@ -98,11 +98,11 @@ class ScalabilityTestRunner():
self
.
log
(
"Dummy SlapOS Master answer received."
)
self
.
last_slapos_answer
.
append
(
True
)
def
_prepareDummySlapOSAnswer
(
self
):
print
"Dummy slapOS answer enabled, send signal to %s (kill -10 %s) to simu
\
late a SlapOS (positive) answer."
%
(
str
(
os
.
getpid
()),
str
(
os
.
getpid
()),)
self
.
log
(
"Dummy slapOS answer enabled, send signal to %s (kill -10 %s) to simu
\
late a SlapOS (positive) answer."
%
(
str
(
os
.
getpid
()),
str
(
os
.
getpid
()),)
)
signal
.
signal
(
signal
.
SIGUSR1
,
self
.
_getSignal
)
def
_comeBackFromDummySlapOS
(
self
):
print
"Dummy slapOS answer disabled, please don't send more signals."
self
.
log
(
"Dummy slapOS answer disabled, please don't send more signals."
)
# use SIG_USR (kill)
signal
.
signal
(
signal
.
SIGUSR1
,
signal
.
SIG_DFL
)
def
simulateSlapOSAnswer
(
self
):
...
...
@@ -138,7 +138,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)
"""
# Define how many time this method can take
max_time
=
3600
*
10
*
1.0
# 10 hours
interval_time
=
3
0
interval_time
=
6
0
start_time
=
time
.
time
()
# Only master testnode must order software installation
if
self
.
testnode
.
test_suite_portal
.
isMasterTestnode
(
...
...
@@ -208,8 +208,8 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)
while
(
self
.
remainSoftwareToInstall
()
and
(
max_time
>
(
time
.
time
()
-
start_time
))):
self
.
log
(
"Master testnode is waiting
\
for the end of all software installation (for %ss)."
,
str
(
int
(
time
.
time
()
-
start_time
)))
for the end of all software installation (for %ss)
PID=%s
."
,
str
(
int
(
time
.
time
()
-
start_time
))
,
str
(
os
.
getpid
())
)
time
.
sleep
(
interval_time
)
# We were wainting for too long time, that's a failure.
# TODO : remove the line below wich simulate an answer from slapos master
...
...
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