Skip to content

Commit e79b900

Browse files
committed
don't run tls_version test if TLSv1.1 is disabled
in /etc/ssl/openssl.cnf as it happens to be on the buster builder
1 parent 4bfb19d commit e79b900

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mysql-test/suite.pm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ sub skip_combinations {
7474
$skip{'main/ssl_verify_ip.test'} = 'x509v3 support required'
7575
unless $openssl_ver ge "1.0.2";
7676

77+
my $openssl_cnf='/etc/ssl/openssl.cnf';
78+
if ($openssl_ver and open my $f, '<', $openssl_cnf) {
79+
local $/;
80+
$_=<$f>;
81+
$skip{'main/tls_version.test'} = "TLSv1.1 disabled in $openssl_cnf"
82+
if /^\s*MinProtocol\s*=\s*TLSv1.[2-9]/m;
83+
}
84+
7785
%skip;
7886
}
7987

0 commit comments

Comments
 (0)