From 3cb2f28ef55cfe06357ba5003caca188a9fd5bec Mon Sep 17 00:00:00 2001 From: sstovbyra Date: Wed, 31 May 2023 14:09:05 +0300 Subject: [PATCH] Update version_utils.py added new binaries to check Update version_utils.py --- src/frostfs_testlib/utils/version_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frostfs_testlib/utils/version_utils.py b/src/frostfs_testlib/utils/version_utils.py index 68f8578..26fedf5 100644 --- a/src/frostfs_testlib/utils/version_utils.py +++ b/src/frostfs_testlib/utils/version_utils.py @@ -1,5 +1,6 @@ import logging import re +import os from frostfs_testlib.cli import FrostfsAdm, FrostfsCli from frostfs_testlib.hosting import Hosting @@ -18,7 +19,10 @@ logger = logging.getLogger("NeoLogger") def get_local_binaries_versions(shell: Shell) -> dict[str, str]: versions = {} - for binary in [NEOGO_EXECUTABLE, FROSTFS_AUTHMATE_EXEC]: + # Extra binaries to get version from + extra_binaries = os.getenv("EXTRA_BINARIES", "").split(',') + + for binary in [NEOGO_EXECUTABLE, FROSTFS_AUTHMATE_EXEC, *extra_binaries]: out = shell.exec(f"{binary} --version").stdout versions[binary] = _parse_version(out)