summaryrefslogtreecommitdiffstats
path: root/test/hook.py
diff options
context:
space:
mode:
authorDmitry Valter <d-valter@yandex-team.ru>2022-03-26 15:43:14 +0000
committerDamjan Marion <dmarion@me.com>2022-03-27 09:21:34 +0000
commit3ace4d62e2dd23154f00dcc6eb7991477f7eb5c5 (patch)
treefeeb9e127a09b2e5f0dd349b671396f3004c52c4 /test/hook.py
parent30bb344ab6c82d742d2e5a79f62f8d4868db16f1 (diff)
tests: fix core file message
Prevent crashing on nonexistent VPP binary path class member when creating testsuite core message. Type: fix Fixes: b23ffd7ef216463c35b75c831e6a27e58971f4ec Signed-off-by: Dmitry Valter <d-valter@yandex-team.ru> Change-Id: Ib9b3dc8c69317e6561e5404bbdcbf672e417cbcd
Diffstat (limited to 'test/hook.py')
-rw-r--r--test/hook.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/hook.py b/test/hook.py
index 7f7a7c31b25..8033c9355cb 100644
--- a/test/hook.py
+++ b/test/hook.py
@@ -6,6 +6,7 @@ from subprocess import check_output, CalledProcessError
import scapy.compat
import framework
+from config import config
from log import RED, single_line_delim, double_line_delim
from util import check_core_path, get_core_path
@@ -79,7 +80,7 @@ class PollHook(Hook):
def on_crash(self, core_path):
self.logger.error("Core file present, debug with: gdb %s %s",
- self.test.vpp_bin, core_path)
+ config.vpp, core_path)
check_core_path(self.logger, core_path)
self.logger.error("Running `file %s':", core_path)
try: