From 4ad9c7023eec19caef319946abdac4b60c35aba1 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 16 May 2015 01:40:34 -0400 Subject: [PATCH] Only post logs about compilation failure when they are from a reasonable size --- master.cfg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/master.cfg b/master.cfg index bdd1cdc..a5fb4c2 100644 --- a/master.cfg +++ b/master.cfg @@ -253,7 +253,13 @@ send to the gdb-testers mailing list.""" elif n == 'compile gdb': text += "*** Failed to compiled GDB. ***\n" text += "============================\n" - text += log.getText ().decode ('ascii', 'ignore') + ct = log.getText ().decode ('ascii', 'ignore') + if len (ct) > 100000: + text += "\n+++ The log is too big to be posted here." + text += "\n+++ Please go to the \"Full Build URL\" (link above) to see it." + text += "\n" + else: + text += ct text += "============================\n" break elif n == 'make tags':