[Rt-commit] r5769 - in Test-Chimps/trunk: . lib/Test/Chimps lib/Test/Chimps/Server

zev at bestpractical.com zev at bestpractical.com
Sun Aug 13 19:48:18 EDT 2006


Author: zev
Date: Sun Aug 13 19:48:17 2006
New Revision: 5769

Modified:
   Test-Chimps/trunk/   (props changed)
   Test-Chimps/trunk/Changes
   Test-Chimps/trunk/lib/Test/Chimps.pm
   Test-Chimps/trunk/lib/Test/Chimps/Howto.pod
   Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm

Log:
 r16499 at galvatron:  zev | 2006-08-13 19:48:09 -0400
 * forgot -s in howto
 * fix for small numbers of rows in reports table in lister


Modified: Test-Chimps/trunk/Changes
==============================================================================
--- Test-Chimps/trunk/Changes	(original)
+++ Test-Chimps/trunk/Changes	Sun Aug 13 19:48:17 2006
@@ -1,5 +1,9 @@
 Revision history for Test-Chimps
 
+0.06    Sun Aug 13 19:46:45 EDT 2006
+        * forgot -s option to smoker in howto
+        * fix in lister for small numbers of rows in reports
+
 0.05    Sun Aug 13 14:37:23 EDT 2006
         * added package line to Test/Chimps.pm
         * added report variables documentation

Modified: Test-Chimps/trunk/lib/Test/Chimps.pm
==============================================================================
--- Test-Chimps/trunk/lib/Test/Chimps.pm	(original)
+++ Test-Chimps/trunk/lib/Test/Chimps.pm	Sun Aug 13 19:48:17 2006
@@ -6,11 +6,11 @@
 
 =head1 VERSION
 
-Version 0.05
+Version 0.06
 
 =cut
 
-our $VERSION = '0.05';
+our $VERSION = '0.06';
 
 =head1 SYNOPSIS
 

Modified: Test-Chimps/trunk/lib/Test/Chimps/Howto.pod
==============================================================================
--- Test-Chimps/trunk/lib/Test/Chimps/Howto.pod	(original)
+++ Test-Chimps/trunk/lib/Test/Chimps/Howto.pod	Sun Aug 13 19:48:17 2006
@@ -109,7 +109,7 @@
 You also probably want to redirect its output to a file so that you
 can look at what went wrong if your projects fail tests.
 
-    chimps at gorilla:~$ bin/chimps-smoker.pl &> log
+    chimps at gorilla:~$ bin/chimps-smoker.pl -s http://gorilla.banana2.com/cgi-bin/chimps-server.pl &> log
 
 That's it!  You now have a smoker that will continually check out
 new revisions of C<Test::Dependencies>, run the test suite, and

Modified: Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm
==============================================================================
--- Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm	(original)
+++ Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm	Sun Aug 13 19:48:17 2006
@@ -158,8 +158,12 @@
 
   foreach my $category (keys %$categories) {
     foreach my $subcategory (keys %{$categories->{$category}}) {
-      @{$categories->{$category}->{$subcategory}} =
-        @{$categories->{$category}->{$subcategory}}[0 .. ($self->max_reports_per_subcategory - 1)];
+      if (scalar @{$categories->{$category}->{$subcategory}} >
+          $self->max_reports_per_subcategory)
+        {
+          @{$categories->{$category}->{$subcategory}} =
+            @{$categories->{$category}->{$subcategory}}[0 .. ($self->max_reports_per_subcategory - 1)];
+        }
     }
   }
 }


More information about the Rt-commit mailing list