forked from TrueCloudLab/frostfs-testcases
[#155] Allow to skip binaries version check
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
da06c09ed0
commit
858ca71e40
1 changed files with 7 additions and 5 deletions
|
@ -32,14 +32,16 @@ def test_binaries_versions(request: FixtureRequest, hosting: Hosting):
|
||||||
exeptions = []
|
exeptions = []
|
||||||
additional_env_properties = {}
|
additional_env_properties = {}
|
||||||
|
|
||||||
for binary, version in got_versions.items():
|
for binary_name, binary in got_versions.items():
|
||||||
if not fullmatch(r"^\d+\.\d+\.\d+(-.*)?(?<!dirty)", version):
|
version = binary["version"]
|
||||||
exeptions.append(f"{binary}: Actual version doesn't conform to format '0.0.0-000-aaaaaaa': {version}")
|
requires_check = binary["check"]
|
||||||
|
if requires_check and not fullmatch(r"^\d+\.\d+\.\d+(-.*)?(?<!dirty)", version):
|
||||||
|
exeptions.append(f"{binary_name}: Actual version doesn't conform to format '0.0.0-000-aaaaaaa': {version}")
|
||||||
|
|
||||||
# If some binary was not listed in the env properties file, let's add it
|
# If some binary was not listed in the env properties file, let's add it
|
||||||
# so that we have full information about versions in allure report
|
# so that we have full information about versions in allure report
|
||||||
if env_properties and binary not in env_properties:
|
if env_properties and binary_name not in env_properties:
|
||||||
additional_env_properties[binary] = version
|
additional_env_properties[binary_name] = version
|
||||||
|
|
||||||
if env_properties and additional_env_properties:
|
if env_properties and additional_env_properties:
|
||||||
save_env_properties(env_file, additional_env_properties)
|
save_env_properties(env_file, additional_env_properties)
|
||||||
|
|
Loading…
Reference in a new issue