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
Alexander Emmerich
erp5
Commits
d755439a
Commit
d755439a
authored
Jun 13, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up
parent
b9409c8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+5
-1
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
d755439a
...
@@ -101,6 +101,8 @@ class ScalabilityTestRunner():
...
@@ -101,6 +101,8 @@ class ScalabilityTestRunner():
self
.
last_slapos_answer
.
append
(
True
)
self
.
last_slapos_answer
.
append
(
True
)
def
_prepareDummySlapOSAnswer
(
self
):
def
_prepareDummySlapOSAnswer
(
self
):
signal
.
signal
(
signal
.
SIGINT
,
self
.
_getSignal
)
signal
.
signal
(
signal
.
SIGINT
,
self
.
_getSignal
)
def
_comeBackFromDummySlapOS
(
self
):
signal
.
signal
(
signal
.
SIGINT
,
SIG_IGN
)
def
simulateSlapOSAnswer
(
self
):
def
simulateSlapOSAnswer
(
self
):
if
len
(
self
.
last_slapos_answer
)
==
0
:
if
len
(
self
.
last_slapos_answer
)
==
0
:
return
False
return
False
...
@@ -169,7 +171,7 @@ class ScalabilityTestRunner():
...
@@ -169,7 +171,7 @@ class ScalabilityTestRunner():
self
.
_prepareSlapOS
(
software_path
,
computer_guid
)
self
.
_prepareSlapOS
(
software_path
,
computer_guid
)
# From the line below we would not supply any more softwares
# From the line below we would not supply any more softwares
self
.
authorize_supply
=
False
self
.
authorize_supply
=
False
# TODO : remove the line below wich simulate an answer from slapos master
self
.
_prepareDummySlapOSAnswer
()
self
.
_prepareDummySlapOSAnswer
()
# Waiting until all softwares are installed
# Waiting until all softwares are installed
while
(
self
.
remainSoftwareToInstall
()
while
(
self
.
remainSoftwareToInstall
()
...
@@ -179,6 +181,8 @@ class ScalabilityTestRunner():
...
@@ -179,6 +181,8 @@ class ScalabilityTestRunner():
str
(
int
(
time
.
time
()
-
start_time
)))
str
(
int
(
time
.
time
()
-
start_time
)))
time
.
sleep
(
interval_time
)
time
.
sleep
(
interval_time
)
# We were wainting for too long time, that's a failure.
# We were wainting for too long time, that's a failure.
# TODO : remove the line below wich simulate an answer from slapos master
self
.
_comeBackFromDummySlapOS
()
if
self
.
remainSoftwareToInstall
()
:
if
self
.
remainSoftwareToInstall
()
:
return
{
'status_code'
:
1
}
return
{
'status_code'
:
1
}
return
{
'status_code'
:
0
}
return
{
'status_code'
:
0
}
...
...
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