summaryrefslogtreecommitdiffstats
path: root/test/hook.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-03-14 18:14:49 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-14 19:14:54 +0000
commit05742265d422e2c3b73aa62f3e0e460918655c77 (patch)
tree9e187dfef3e404319c48e25c695f2c9bb44302b4 /test/hook.py
parent5a72e425f9c2d5ca049fd05cd280c4bff5f73d57 (diff)
make test: early core detection, code cleanup
Change-Id: I503d69f902f1c8d3107fb3f2b9f31b0083ebb747 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/hook.py')
-rw-r--r--test/hook.py2
1 files changed, 2 insertions, 0 deletions
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" %