From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 1 Jun 2009 10:49:07 +0000 (+0000)
Subject: In load_regression_tests(), catch-last minute config file changes
X-Git-Tag: v_3_0_13~60
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/static/@default-cgi@toggle?a=commitdiff_plain;h=f19f65c9d27ffd81cc344320132a311902a85453;p=privoxy.git

In load_regression_tests(), catch-last minute config file changes
by requesting the config file twice and discarding the result of
the first request.
---

diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl
index 92a0a10c..3b02fdaa 100755
--- a/tools/privoxy-regression-test.pl
+++ b/tools/privoxy-regression-test.pl
@@ -7,7 +7,7 @@
 # A regression test "framework" for Privoxy. For documentation see:
 # perldoc privoxy-regression-test.pl
 #
-# $Id: privoxy-regression-test.pl,v 1.179 2009/05/28 17:24:53 fk Exp $
+# $Id: privoxy-regression-test.pl,v 1.180 2009/06/01 10:48:24 fk Exp $
 #
 # Wish list:
 #
@@ -164,6 +164,10 @@ sub load_regressions_tests () {
 
     l(LL_STATUS, "Asking Privoxy for the number of action files available ...");
 
+    # Dear Privoxy, please reload the config file if necessary ...
+    get_cgi_page_or_else($curl_url);
+
+    # ... so we get the latest one here.
     foreach (@{get_cgi_page_or_else($curl_url)}) {
 
         chomp;