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
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
Commits
0b962d20
Commit
0b962d20
authored
Jun 17, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change signal num into the dummy slapOS
parent
46186b06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+4
-4
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
0b962d20
...
...
@@ -98,13 +98,13 @@ 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 (
=PID
) to simu
\
late a SlapOS (positive) answer."
%
(
str
(
os
.
getpid
()),)
signal
.
signal
(
signal
.
SIG
TERM
,
self
.
_getSignal
)
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
()),
)
signal
.
signal
(
signal
.
SIG
USR1
,
self
.
_getSignal
)
def
_comeBackFromDummySlapOS
(
self
):
print
"Dummy slapOS answer disabled, please don't send more signals."
# use SIG_USR (kill)
signal
.
signal
(
signal
.
SIG
TERM
,
signal
.
SIG_DFL
)
signal
.
signal
(
signal
.
SIG
USR1
,
signal
.
SIG_DFL
)
def
simulateSlapOSAnswer
(
self
):
if
len
(
self
.
last_slapos_answer
)
==
0
:
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