You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2022/05/28 11:36:17 UTC

svn commit: r1901348 - /spamassassin/trunk/t/SATest.pm

Author: hege
Date: Sat May 28 11:36:17 2022
New Revision: 1901348

URL: http://svn.apache.org/viewvc?rev=1901348&view=rev
Log:
Don't clear any tstprefs() or tstlocalrules() settings with clear_localrules()

Modified:
    spamassassin/trunk/t/SATest.pm

Modified: spamassassin/trunk/t/SATest.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/SATest.pm?rev=1901348&r1=1901347&r2=1901348&view=diff
==============================================================================
--- spamassassin/trunk/t/SATest.pm (original)
+++ spamassassin/trunk/t/SATest.pm Sat May 28 11:36:17 2022
@@ -284,6 +284,9 @@ sub clear_localrules {
     # Keep some useful, should not contain any rules
     next if $file =~ /10_default_prefs.cf$/;
     next if $file =~ /20_aux_tlds.cf$/;
+    # Keep our own tstprefs() or tstlocalrules()
+    next if $file =~ /99_test_prefs.cf$/;
+    next if $file =~ /99_test_rules.cf$/;
     unlink $file;
   }
 }