Files
nginx-unit/test/unit/check/tls.py
Andrei Zeliankou d491527555 Tests: minor fixes.
Fixed temporary dir removing.
Fixed printing path to log.
Module checks moved to the separate file.
2020-10-01 10:17:00 +01:00

14 lines
275 B
Python

import re
import subprocess
def check_openssl(unitd):
subprocess.check_output(['which', 'openssl'])
output = subprocess.check_output(
[unitd, '--version'], stderr=subprocess.STDOUT
)
if re.search('--openssl', output.decode()):
return True