From 05742265d422e2c3b73aa62f3e0e460918655c77 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Wed, 14 Mar 2018 18:14:49 +0100 Subject: make test: early core detection, code cleanup Change-Id: I503d69f902f1c8d3107fb3f2b9f31b0083ebb747 Signed-off-by: Klement Sekera --- 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 0ef1377ba99..44b432e5c25 100644 --- a/test/hook.py +++ b/test/hook.py @@ -62,6 +62,8 @@ class PollHook(Hook): def on_crash(self, core_path): if self.testcase.debug_core: + # notify parent process that we're handling a core file + open('%s/_core_handled' % self.testcase.tempdir, 'a').close() spawn_gdb(self.testcase.vpp_bin, core_path, self.logger) else: self.logger.critical("Core file present, debug with: gdb %s %s" % -- cgit 1.2.3-korg