Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
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
Hide 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():
self
.
last_slapos_answer
.
append
(
True
)
def
_prepareDummySlapOSAnswer
(
self
):
signal
.
signal
(
signal
.
SIGINT
,
self
.
_getSignal
)
def
_comeBackFromDummySlapOS
(
self
):
signal
.
signal
(
signal
.
SIGINT
,
SIG_IGN
)
def
simulateSlapOSAnswer
(
self
):
if
len
(
self
.
last_slapos_answer
)
==
0
:
return
False
...
...
@@ -169,7 +171,7 @@ class ScalabilityTestRunner():
self
.
_prepareSlapOS
(
software_path
,
computer_guid
)
# From the line below we would not supply any more softwares
self
.
authorize_supply
=
False
# TODO : remove the line below wich simulate an answer from slapos master
self
.
_prepareDummySlapOSAnswer
()
# Waiting until all softwares are installed
while
(
self
.
remainSoftwareToInstall
()
...
...
@@ -179,6 +181,8 @@ class ScalabilityTestRunner():
str
(
int
(
time
.
time
()
-
start_time
)))
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
self
.
_comeBackFromDummySlapOS
()
if
self
.
remainSoftwareToInstall
()
:
return
{
'status_code'
:
1
}
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