Commit a63dac9b authored by Benjamin Blanc's avatar Benjamin Blanc

Up

parent d755439a
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment