From 57612ebcf3b5414c6a2f6153a3338803ac94d759 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Wed, 28 Mar 2018 15:32:10 +0200 Subject: make test: print a warning in case a core_pattern contains a filter program The default config on Ubuntu 16.04.4 desktop results in truncated cores when running make test which coredumps. Uninstalling the filter program (apport) makes the corefiles normal size. Print a warning about that fact, so the others potentially affected didn't have to wonder. Change-Id: Iba4b0a2765a25100d6e24fd7f4de0e0339efd835 Signed-off-by: Andrew Yourtchenko --- test/hook.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/hook.py') diff --git a/test/hook.py b/test/hook.py index f4bafa16f19..0e94dcde135 100644 --- a/test/hook.py +++ b/test/hook.py @@ -5,6 +5,7 @@ import traceback from log import RED, single_line_delim, double_line_delim from debug import spawn_gdb from subprocess import check_output, CalledProcessError +from util import check_core_path class Hook(object): @@ -70,6 +71,7 @@ class PollHook(Hook): else: self.logger.error("Core file present, debug with: gdb %s %s" % (self.testcase.vpp_bin, core_path)) + check_core_path(self.logger, core_path) self.logger.error("Running `file %s':" % core_path) try: info = check_output(["file", core_path]) -- cgit 1.2.3-korg