[Privoxy-commits] [privoxy] 05/11: privoxy-regression-test.pl: Let the --min-level option increase the --max-level

User Git git at git.privoxy.org
Tue Jul 11 05:52:39 CEST 2023


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 36e809f26ad011e587a206e8349fcc2b52efd4b6
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Fri Jun 30 17:49:21 2023 +0200

    privoxy-regression-test.pl: Let the --min-level option increase the --max-level
    
    .. if the latter is smaller than the former.
---
 tools/privoxy-regression-test.pl | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl
index 29eb9c18..5209bf8a 100755
--- a/tools/privoxy-regression-test.pl
+++ b/tools/privoxy-regression-test.pl
@@ -1779,6 +1779,11 @@ sub parse_cli_options() {
         'version'            => sub {print_version && exit(0)}
     ) or exit(1);
     $log_level |= $cli_options{'debug'};
+
+    if ($cli_options{'min-level'} > $cli_options{'max-level'}) {
+        log_message("Increasing --max-level to --min-level " . $cli_options{'min-level'});
+        $cli_options{'max-level'} = $cli_options{'min-level'};
+    }
 }
 
 sub cli_option_is_set($) {
@@ -2097,6 +2102,8 @@ a fuzzer.
 
 B<--min-level min-level> Only execute tests with a B<level>
 above or equal to the numerical B<min-level>.
+If the B<min-level> is larger than the B<max-level>,
+the B<max-level> is set to the B<min-level>.
 
 B<--privoxy-address proxy-address> Privoxy's listening address.
 If it's not set, the value of the environment variable http_proxy

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list