Tests: features and options checks improved.
Now version output evaluates only once. OpenSSL checks more carefully.
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
|
||||
def check_regex(unitd):
|
||||
output = subprocess.check_output(
|
||||
[unitd, '--version'], stderr=subprocess.STDOUT
|
||||
)
|
||||
|
||||
if re.search('--no-regex', output.decode()):
|
||||
def check_regex(output_version):
|
||||
if re.search('--no-regex', output_version):
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user