aboutsummaryrefslogtreecommitdiffstats
path: root/test/hook.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2016-11-02 09:25:05 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-02 14:14:28 +0000
commit01bbbe91faac7f70abab389c56bb016af086073f (patch)
tree2e40ba5626b11b700d9b33fbb7ede73564ce5573 /test/hook.py
parent446e1f577b75f99aced8abb035a9d1bba917e89a (diff)
Improve debug-cli in test framework
Opening debug-cli only makes sense if there is time for user to use it, so either the run must be debugged or stepped. Only open the debug-cli in these cases. Change-Id: Ied276071797a549880d730cda43c59230a412efe Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/hook.py')
-rw-r--r--test/hook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hook.py b/test/hook.py
index 3ae14737..f81e5187 100644
--- a/test/hook.py
+++ b/test/hook.py
@@ -73,7 +73,7 @@ class PollHook(Hook):
raise Exception("GDB refused to die...")
def on_crash(self, core_path):
- if self.testcase.interactive:
+ if self.testcase.debug_core:
gdb_path = '/usr/bin/gdb'
if os.path.isfile(gdb_path) and os.access(gdb_path, os.X_OK):
# automatically attach gdb