Include last 100 lines in the build breakage log
This commit is contained in:
parent
f10d5d0e54
commit
fc2e3388f1
1 changed files with 5 additions and 3 deletions
|
@ -313,9 +313,11 @@ send to the gdb-testers mailing list."""
|
||||||
text += "============================\n"
|
text += "============================\n"
|
||||||
ct = log.getText ().decode ('ascii', 'ignore')
|
ct = log.getText ().decode ('ascii', 'ignore')
|
||||||
if len (ct) > 100000:
|
if len (ct) > 100000:
|
||||||
text += "\n+++ The log is too big to be posted here."
|
text += "\n+++ The full log is too big to be posted here."
|
||||||
text += "\n+++ Please go to the \"Full Build URL\" (link above) to see it."
|
text += "\n+++ These are the last 100 lines of it.\n\n"
|
||||||
text += "\n\n"
|
ctt = ct.split ('\n')[-100:]
|
||||||
|
ct = '\n'.join (ctt)
|
||||||
|
text += ct
|
||||||
else:
|
else:
|
||||||
text += ct
|
text += ct
|
||||||
text += "============================\n"
|
text += "============================\n"
|
||||||
|
|
Loading…
Reference in a new issue