Only post logs about compilation failure when they are from a reasonable size

This commit is contained in:
Sergio Durigan Junior 2015-05-16 01:40:34 -04:00
parent 1240294630
commit 4ad9c7023e

View file

@ -253,7 +253,13 @@ send to the gdb-testers mailing list."""
elif n == 'compile gdb': elif n == 'compile gdb':
text += "*** Failed to compiled GDB. ***\n" text += "*** Failed to compiled GDB. ***\n"
text += "============================\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" text += "============================\n"
break break
elif n == 'make tags': elif n == 'make tags':