Tests: features and options checks improved.
Now version output evaluates only once. OpenSSL checks more carefully.
This commit is contained in:
@@ -176,6 +176,9 @@ def pytest_sessionstart(session):
|
||||
option.available = {'modules': {}, 'features': {}}
|
||||
|
||||
unit = unit_run()
|
||||
output_version = subprocess.check_output(
|
||||
[unit['unitd'], '--version'], stderr=subprocess.STDOUT
|
||||
).decode()
|
||||
|
||||
# read unit.log
|
||||
|
||||
@@ -202,10 +205,10 @@ def pytest_sessionstart(session):
|
||||
|
||||
# discover modules from check
|
||||
|
||||
option.available['modules']['openssl'] = check_openssl(unit['unitd'])
|
||||
option.available['modules']['go'] = check_go()
|
||||
option.available['modules']['node'] = check_node(option.current_dir)
|
||||
option.available['modules']['regex'] = check_regex(unit['unitd'])
|
||||
option.available['modules']['openssl'] = check_openssl(output_version)
|
||||
option.available['modules']['regex'] = check_regex(output_version)
|
||||
|
||||
# remove None values
|
||||
|
||||
|
||||
Reference in New Issue
Block a user