]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
Reporting: sg-report-job-history: Honour --limit
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 29 Jun 2015 14:52:51 +0000 (15:52 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 30 Jun 2015 11:26:43 +0000 (12:26 +0100)
The global $limit was erroneously shadowed by a local in
processjobbranch.  Fix this, and move the erroneously hardcoded value
to the global default.

No functional change if --limit was not specified, which it is not for
any of our runs with the in-tree configs.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
sg-report-job-history

index 900d99892708e3ba0cb17851491bc82a6579534f..51cb5b6a3f6789dcf6cfc86c5f8fd6a6ff5c1e67 100755 (executable)
@@ -28,7 +28,7 @@ use Osstest::TestSupport;
 use Osstest::Executive;
 
 our (@blessings,@branches);
-our $limit= 500;
+our $limit= 100;
 our $htmlout;
 
 open DEBUG, ">/dev/null";
@@ -123,7 +123,6 @@ sub processjobbranch ($$) {
         $cond .= " AND branch = ?";
         push @params, $bra;
     }
-    my $limit= 100;
     my $offset= $limit-1;
 
     my $fromstuff= <<END;