You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2008/12/29 13:42:05 UTC
svn commit: r729887 - /spamassassin/trunk/t.rules/run
Author: jm
Date: Mon Dec 29 04:42:05 2008
New Revision: 729887
URL: http://svn.apache.org/viewvc?rev=729887&view=rev
Log:
t.rules runner: ignore .cf files in all cases, not just when no test files are specified
Modified:
spamassassin/trunk/t.rules/run
Modified: spamassassin/trunk/t.rules/run
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t.rules/run?rev=729887&r1=729886&r2=729887&view=diff
==============================================================================
--- spamassassin/trunk/t.rules/run (original)
+++ spamassassin/trunk/t.rules/run Mon Dec 29 04:42:05 2008
@@ -73,7 +73,6 @@
warn "\nRunning tests for $rule:\n" if $verbose;
foreach my $f (<$ruledir/*>) {
- next if ($f =~ /\.cf$/i);
(-f $f) and test_msg($f);
}
}
@@ -83,6 +82,7 @@
sub test_msg {
my ($f) = @_;
+ return if ($f =~ /\.cf$/i);
($f =~ /\/([^\/]+)\/[^\/]+$/) or warn "cannot find rule in '$f'";
my $rule = $1;