make test: fix DEBUG=core error
Change-Id: I703b2866a1607d6a2fad215e90b5cf2d7afdfd0d Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
9ef1c0adbf
commit
b90be67b35
@ -19,6 +19,8 @@ ifeq ($(DEBUG),gdb)
|
|||||||
FORCE_FOREGROUND=1
|
FORCE_FOREGROUND=1
|
||||||
else ifeq ($(DEBUG),gdbserver)
|
else ifeq ($(DEBUG),gdbserver)
|
||||||
FORCE_FOREGROUND=1
|
FORCE_FOREGROUND=1
|
||||||
|
else ifeq ($(DEBUG),core)
|
||||||
|
FORCE_FOREGROUND=1
|
||||||
else
|
else
|
||||||
FORCE_FOREGROUND=0
|
FORCE_FOREGROUND=0
|
||||||
endif
|
endif
|
||||||
|
@ -62,7 +62,7 @@ class PollHook(Hook):
|
|||||||
|
|
||||||
def on_crash(self, core_path):
|
def on_crash(self, core_path):
|
||||||
if self.testcase.debug_core:
|
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(
|
self.logger.error(
|
||||||
"Debugger '%s' does not exist or is not an executable.." %
|
"Debugger '%s' does not exist or is not an executable.." %
|
||||||
gdb_path)
|
gdb_path)
|
||||||
|
Reference in New Issue
Block a user