[nginx-tests] Tests: improved version detection to accept altern...

Maxim Dounin mdounin at mdounin.ru
Tue Feb 20 14:19:01 UTC 2024


details:   http://freenginx.org/hg/nginx-tests/rev/1d980c5013dc
branches:  
changeset: 1947:1d980c5013dc
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Thu Feb 15 23:34:22 2024 +0300
description:
Tests: improved version detection to accept alternative names.

diffstat:

 lib/Test/Nginx.pm |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -306,7 +306,7 @@ sub has_version($) {
 	$self->{_configure_args} = `$NGINX -V 2>&1`
 		if !defined $self->{_configure_args};
 
-	$self->{_configure_args} =~ m!nginx version: nginx/([0-9.]+)!;
+	$self->{_configure_args} =~ m!nginx version: \w+/([0-9.]+)!;
 
 	my @v = split(/\./, $1);
 	my ($n, $v);



More information about the nginx-devel mailing list