From patchwork Fri Dec 23 14:15:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 18664 Received: (qmail 80991 invoked by alias); 23 Dec 2016 14:15:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 80968 invoked by uid 89); 23 Dec 2016 14:15:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=sk:gdb_pyt, spawn X-HELO: mx1.redhat.com Date: Fri, 23 Dec 2016 15:15:02 +0100 To: libc-alpha@sourceware.org Subject: [PATCH COMMITTED] scripts/test_printers_common.py: Log GDB error message User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20161223141502.CAFD7405921C2@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 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 * scripts/test_printers_common.py: Log GDB output in case of Python detection failure. 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.