[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 06/14] Reporting: sg-report-job-history: support --max-flight
Using report_blessingscond instead of the open-coded map. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- sg-report-job-history | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sg-report-job-history b/sg-report-job-history index 51cb5b6..3d02e3f 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -30,6 +30,7 @@ use Osstest::Executive; our (@blessings,@branches); our $limit= 100; our $htmlout; +our $maxflight; open DEBUG, ">/dev/null"; @@ -40,6 +41,8 @@ while (@ARGV && $ARGV[0] =~ m/^-/) { $$1= $2; } elsif (m/^--(limit)\=([1-9]\d*)$/) { $$1= $2; + } elsif (m/^--max-flight\=([1-9]\d*)$/) { + $maxflight= $1; } elsif (m/^--html-dir=(.*)$/) { $htmlout= $1; } elsif (m/^--branches?=(.*)$/) { @@ -116,9 +119,9 @@ sub processjobbranch ($$) { my @rev_grid_cols; my @test_rows; - my $blessingscond= '('.join(' OR ', map { "blessing=?" } @blessings).')'; + my $blessingscond= report_blessingscond(\@blessings, $maxflight); my $cond = "job = ? AND $blessingscond"; - my (@params) = ($j, @blessings); + my (@params) = ($j); if (defined $bra) { $cond .= " AND branch = ?"; push @params, $bra; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |