fix sla bini
This commit is contained in:
@@ -119,7 +119,9 @@ class Carbeat(Challenge):
|
||||
|
||||
def exit(self, proc, timeout=1.):
|
||||
self._read_until(proc, "> ", timeout=timeout)
|
||||
self._send_line(proc, "3")
|
||||
self._send_line(proc, "4")
|
||||
|
||||
|
||||
|
||||
def check(self):
|
||||
self._make_logger()
|
||||
@@ -166,8 +168,8 @@ class Carbeat(Challenge):
|
||||
proc.wait(timeout=2.0)
|
||||
except subprocess.TimeoutExpired:
|
||||
proc.kill()
|
||||
raise AssertionError("Program did not exit after option 3")
|
||||
self.logger.info("[ok] service exit on 3")
|
||||
raise AssertionError("Program did not exit after exit command")
|
||||
self.logger.info("[ok] service exit on exit command")
|
||||
|
||||
proc_alarm = self._spawn()
|
||||
self._read_until(proc_alarm, "zzz", timeout=190.0) # 180s + slack
|
||||
|
||||
Reference in New Issue
Block a user