Files
nginx-unit/test/unit/check/tls.py
Andrei Zeliankou 0d3b31e671 Tests: features and options checks improved.
Now version output evaluates only once.
OpenSSL checks more carefully.
2022-11-15 00:39:21 +00:00

13 lines
258 B
Python

import re
import subprocess
def check_openssl(output_version):
try:
subprocess.check_output(['which', 'openssl'])
except subprocess.CalledProcessError:
return None
if re.search('--openssl', output_version):
return True