summaryrefslogtreecommitdiffstats
path: root/test/hook.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2016-11-24 01:59:16 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-28 11:54:47 +0000
commit085f5c00661ef00a038d3d54be7be6dafd0a6d89 (patch)
tree649461c595f1f1e2709bc149b9d8b26a83417c54 /test/hook.py
parent475f055305cf904b1c1c0436654f2f3e1c4f3358 (diff)
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>
Diffstat (limited to 'test/hook.py')
-rw-r--r--test/hook.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/hook.py b/test/hook.py
index f81e5187d00..90e9bbf56b0 100644
--- a/test/hook.py
+++ b/test/hook.py
@@ -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