From: Ian Jackson Date: Mon, 30 Nov 2015 13:35:54 +0000 (+0000) Subject: cs-bisection-step: Limit size of revision log included in reports X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=93a26b93ec671d0e247e78c1470f16c18f626b75;p=people%2Fiwj%2Fosstest.git cs-bisection-step: Limit size of revision log included in reports 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 Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- v2: Fix typo in message. --- diff --git a/cs-bisection-step b/cs-bisection-step index e51babdb..2b899de7 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -898,6 +898,11 @@ END "./adhoc-revtuple-generator -S @revtuplegenargs $rts"; my $revinfo= `$revrune`; if (!$?) { + if (length($revinfo) > 24000) { + $revinfo = <