summaryrefslogtreecommitdiffstats
path: root/test/debug.py
diff options
context:
space:
mode:
authorjuraj.linkes <juraj.linkes@pantheon.tech>2018-09-21 13:55:16 +0200
committerDamjan Marion <dmarion@me.com>2018-10-10 16:05:37 +0000
commit40dd73bcfa7625773e1e0cc049134f9d7107bccc (patch)
tree478bc498d60aa2292552a1eb97461b81b2a1a17d /test/debug.py
parent825fc4892ee7ec3cff83b2754cd921c0157e62f8 (diff)
Setup, teardown, DEBUG=core, FAILFAST fixes
- Fixed a bug when an error occuring in tearDownClass would not result in test being marked as failed - Improved test results reporting in cases when an error occurs in setUpClass and tearDownClass - Fixed DEBUG=core when the core is produced in setUpClass or tearDownClass - Reworked DEBUG=core to always be handled after all tests have been executed - Fixed FAILFAST=1 for parallel test runs Change-Id: I3e9cd3b97ba6fa802fa0aa2dd7678ff82eee09ec Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Diffstat (limited to 'test/debug.py')
-rw-r--r--test/debug.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/debug.py b/test/debug.py
index 4516b8c150b..d1c89c66f3c 100644
--- a/test/debug.py
+++ b/test/debug.py
@@ -2,11 +2,12 @@
import os
import pexpect
+import sys
gdb_path = '/usr/bin/gdb'
-def spawn_gdb(binary_path, core_path, logger):
+def spawn_gdb(binary_path, core_path):
if os.path.isfile(gdb_path) and os.access(gdb_path, os.X_OK):
# automatically attach gdb
gdb_cmdline = "%s %s %s" % (gdb_path, binary_path, core_path)
@@ -19,5 +20,5 @@ def spawn_gdb(binary_path, core_path, logger):
if gdb.isalive():
raise Exception("GDB refused to die...")
else:
- logger.error("Debugger '%s' does not exist or is not an "
- "executable.." % gdb_path)
+ sys.stderr.write("Debugger '%s' does not exist or is not "
+ "an executable..\n" % gdb_path)