MCPcopy Index your code
hub / github.com/StackStorm/st2 / assertProcessExited

Method assertProcessExited

st2tests/st2tests/base.py:654–661  ·  view source on GitHub ↗
(self, proc)

Source from the content-addressed store, hash-verified

652 self.fail(msg)
653
654 def assertProcessExited(self, proc):
655 try:
656 status = proc.status()
657 except psutil.NoSuchProcess:
658 status = "exited"
659
660 if status not in ["exited", "zombie"]:
661 self.fail('Process with pid "%s" is still running' % (proc.pid))
662
663
664class WorkflowTestCase(ExecutionDbTestCase):

Calls

no outgoing calls