From c4ede4a229908e4820b1d5941df35755041902a2 Mon Sep 17 00:00:00 2001 From: Brian Neradt Date: Thu, 1 Jul 2021 16:38:03 +0000 Subject: [PATCH] tls_bad_alpn: Add an openssl version skip check The tls_bad_alpn.test.py test requires a later version of openssl which supports the `-alpn` feature. If the system is not using that version of openssl, then the test should be skipped. This patch adds that openssl version skip condition. --- tests/gold_tests/tls/tls_bad_alpn.test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/gold_tests/tls/tls_bad_alpn.test.py b/tests/gold_tests/tls/tls_bad_alpn.test.py index 6609413e6d6..06c29ca15f8 100644 --- a/tests/gold_tests/tls/tls_bad_alpn.test.py +++ b/tests/gold_tests/tls/tls_bad_alpn.test.py @@ -23,6 +23,9 @@ Ensure that handshake fails if invalid alpn string is offered ''' +# Only later versions of openssl support the `-alpn` option. +Test.SkipUnless(Condition.HasOpenSSLVersion('1.1.1')) + # Define default ATS ts = Test.MakeATSProcess("ts", select_ports=True, enable_tls=True)