[#155] Allow to skip binaries version check
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
269caf8e03
commit
5cbedc88aa
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