Poll the vpp status and throw an exception if it's not running :raises VppDiedError: exception if VPP is not running anymore
(self)
| 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 | """ |
no test coverage detected