diff mbox

[COMMITTED] scripts/test_printers_common.py: Log GDB error message

Message ID 20161223141502.CAFD7405921C2@oldenburg.str.redhat.com
State New
Headers show

Commit Message

Florian Weimer Dec. 23, 2016, 2:15 p.m. UTC
If GDB prints an error message for a "python" command, include
that error message in the test log output, to simplify diagnosing
GDB/Python detection issues.

2016-12-23  Florian Weimer  <fweimer@redhat.com>

	* scripts/test_printers_common.py: Log GDB output in case of
	Python detection failure.

Comments

Martin Galvan Dec. 23, 2016, 3:26 p.m. UTC | #1
Thanks, this is quite useful :)
diff mbox

Patch

diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py
index c79d7e3..c605a3c 100644
--- a/scripts/test_printers_common.py
+++ b/scripts/test_printers_common.py
@@ -87,6 +87,7 @@  try:
 
     if gdb_python_error:
         print('gdb must have python support to test the pretty printers.')
+        print('gdb output: {!r}'.format(gdb_python_error))
         exit(UNSUPPORTED)
 
     # If everything's ok, spawn the gdb process we'll use for testing.