make test: fix DEBUG=core error 42/9242/2
authorKlement Sekera <ksekera@cisco.com>
Tue, 10 Oct 2017 04:44:05 +0000 (06:44 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 6 Nov 2017 19:24:41 +0000 (19:24 +0000)
Change-Id: I703b2866a1607d6a2fad215e90b5cf2d7afdfd0d
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/Makefile
test/hook.py

index 00d7040..f8da350 100644 (file)
@@ -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
index f34e0c5..77a2fc5 100644 (file)
@@ -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)