From fc2e3388f167a356558c3a2195eabd44fd703604 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 31 Jul 2015 14:16:46 -0400 Subject: [PATCH] Include last 100 lines in the build breakage log --- master.cfg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/master.cfg b/master.cfg index 7deea41..3d2e96f 100644 --- a/master.cfg +++ b/master.cfg @@ -313,9 +313,11 @@ send to the gdb-testers mailing list.""" text += "============================\n" 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\n" + text += "\n+++ The full log is too big to be posted here." + text += "\n+++ These are the last 100 lines of it.\n\n" + ctt = ct.split ('\n')[-100:] + ct = '\n'.join (ctt) + text += ct else: text += ct text += "============================\n"