Only post logs about compilation failure when they are from a reasonable size
This commit is contained in:
parent
1240294630
commit
4ad9c7023e
1 changed files with 7 additions and 1 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue