]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
cs-bisection-step: Limit size of revision log included in reports
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 30 Nov 2015 13:35:54 +0000 (13:35 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 30 Nov 2015 17:26:12 +0000 (17:26 +0000)
There is a limit in cr-daily-branch, but none in cs-bisection-step.

adhoc-revtuple-generator could usefully have this built in but that's
not so simple, so do it again here.  We already slurp the whole thing
into core so from a resource usage point of view we might as well do
the length check here too.

Reported-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: Fix typo in message.

cs-bisection-step

index e51babdb9fdf2c0436e70ef1f0da6f12e8c34db4..2b899de7a2e71a2f4508e40c8f5bf1c549add5c8 100755 (executable)
@@ -898,6 +898,11 @@ END
                    "./adhoc-revtuple-generator -S @revtuplegenargs $rts";
                 my $revinfo= `$revrune`;
                 if (!$?) {
+                   if (length($revinfo) > 24000) {
+                       $revinfo = <<END;
+(Revision log too long, omitted.)
+END
+                   }
                     summary_report("",$revinfo,-1);
                 }
             }