summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-10-10 06:44:05 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-11-06 19:24:41 +0000
commitb90be67b350cf0e441dafbf28eb4578be773f3ff (patch)
treeb24edd2837972585d826a1e6e78df25b444208d3 /test
parent9ef1c0adbf9399c55deeede3cf629dd4e8c20304 (diff)
make test: fix DEBUG=core error
Change-Id: I703b2866a1607d6a2fad215e90b5cf2d7afdfd0d Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile2
-rw-r--r--test/hook.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 00d70400076..f8da35098ab 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -19,6 +19,8 @@ ifeq ($(DEBUG),gdb)
FORCE_FOREGROUND=1
else ifeq ($(DEBUG),gdbserver)
FORCE_FOREGROUND=1
+else ifeq ($(DEBUG),core)
+FORCE_FOREGROUND=1
else
FORCE_FOREGROUND=0
endif
diff --git a/test/hook.py b/test/hook.py
index f34e0c5b1f6..77a2fc5bb23 100644
--- a/test/hook.py
+++ b/test/hook.py
@@ -62,7 +62,7 @@ class PollHook(Hook):
def on_crash(self, core_path):
if self.testcase.debug_core:
- if not spawn_gdb(self.testcase.vpp_bin, core_path):
+ if not spawn_gdb(self.testcase.vpp_bin, core_path, self.logger):
self.logger.error(
"Debugger '%s' does not exist or is not an executable.." %
gdb_path)