MCPcopy Create free account
hub / github.com/FDio/vpp / poll_vpp

Method poll_vpp

test/hook.py:186–201  ·  view source on GitHub ↗

Poll the vpp status and throw an exception if it's not running :raises VppDiedError: exception if VPP is not running anymore

(self)

Source from the content-addressed store, hash-verified

184 )
185
186 def poll_vpp(self):
187 """
188 Poll the vpp status and throw an exception if it's not running
189 :raises VppDiedError: exception if VPP is not running anymore
190 """
191 if not hasattr(self.test, "vpp") or self.test.vpp_dead:
192 # already dead, nothing to do
193 return
194
195 self.test.vpp.poll()
196 if self.test.vpp.returncode is not None:
197 self.test.vpp_dead = True
198 core_path = get_core_path(self.test.tempdir)
199 if os.path.isfile(core_path):
200 self.on_crash(core_path)
201 raise asfframework.VppDiedError(rv=self.test.vpp.returncode)
202
203 def before_api(self, api_name, api_args):
204 """

Callers 4

before_apiMethod · 0.95
before_cliMethod · 0.95
setUpClassMethod · 0.95
setUpClassMethod · 0.95

Calls 3

on_crashMethod · 0.95
get_core_pathFunction · 0.90
pollMethod · 0.45

Tested by

no test coverage detected