[Bps-public-commit] r14275 - Test-Chimps-Anna/trunk/lib/Test/Chimps

alexmv at bestpractical.com alexmv at bestpractical.com
Fri Jul 18 12:35:21 EDT 2008


Author: alexmv
Date: Fri Jul 18 12:35:20 2008
New Revision: 14275

Modified:
   Test-Chimps-Anna/trunk/lib/Test/Chimps/Anna.pm

Log:
 * Fix the logic on the last commit

Modified: Test-Chimps-Anna/trunk/lib/Test/Chimps/Anna.pm
==============================================================================
--- Test-Chimps-Anna/trunk/lib/Test/Chimps/Anna.pm	(original)
+++ Test-Chimps-Anna/trunk/lib/Test/Chimps/Anna.pm	Fri Jul 18 12:35:20 2008
@@ -175,9 +175,10 @@
         # don't announce if we've never seen this project before
         $self->{passing_projects}->{$report->project} = 1;
       }
-      if (    $self->{passing_projects}->{$report->project}++
-          and $self->{passing_projects}->{$report->project} % 10 == 0) {
-        $self->_say_to_all( $report->project . " still passing all " . $report->total_ok . " tests.  Woo!");
+      if ( $self->{passing_projects}->{$report->project}++) {
+        if ($self->{passing_projects}->{$report->project} % 5 == 0) {
+            $self->_say_to_all( $report->project . " still passing all " . $report->total_ok . " tests.  Woo!");
+        }
       } else {
         $self->_say_to_all("Smoke report for " .  $report->project
                            . " r" . $report->revision . " submitted by ".$report->committer."; "



More information about the Bps-public-commit mailing list