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
alecs_myu
erp5
Commits
a63dac9b
Commit
a63dac9b
authored
Jun 13, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up
parent
d755439a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+2
-1
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
a63dac9b
...
@@ -98,11 +98,12 @@ class ScalabilityTestRunner():
...
@@ -98,11 +98,12 @@ class ScalabilityTestRunner():
# For dummy slapos answer
# For dummy slapos answer
# Press ctrl+c to simulate an (positive) answer from sapos master
# Press ctrl+c to simulate an (positive) answer from sapos master
def
_getSignal
(
self
,
signal
,
frame
):
def
_getSignal
(
self
,
signal
,
frame
):
self
.
testnode
.
log
(
"Dummy SlapOS Master answer received."
)
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
):
def
_comeBackFromDummySlapOS
(
self
):
signal
.
signal
(
signal
.
SIGINT
,
SIG_IGN
)
signal
.
signal
(
signal
.
SIGINT
,
signal
.
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
...
...
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