make test: detect early vpp crash
If VPP process dies right at start, do a quick detection instead of being stuck in the connect timeout (60s). Change-Id: I41675181635fb81a6a7d93fbf652480a16bf78a0 Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
475f055305
commit
085f5c0066
@ -57,7 +57,6 @@ class PollHook(Hook):
|
||||
""" Hook which checks if the vpp subprocess is alive """
|
||||
|
||||
def __init__(self, testcase):
|
||||
self.vpp_dead = False
|
||||
self.testcase = testcase
|
||||
self.logger = testcase.logger
|
||||
|
||||
@ -92,7 +91,7 @@ class PollHook(Hook):
|
||||
Poll the vpp status and throw an exception if it's not running
|
||||
:raises VppDiedError: exception if VPP is not running anymore
|
||||
"""
|
||||
if self.vpp_dead:
|
||||
if self.testcase.vpp_dead:
|
||||
# already dead, nothing to do
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user