From 40f850c1f9077039ec8f50f713bf75adfc9a0170 Mon Sep 17 00:00:00 2001 From: Katarzyna Treder Date: Tue, 10 Dec 2024 14:31:39 +0100 Subject: [PATCH] Move git to tools Signed-off-by: Katarzyna Treder --- {test_utils => test_tools}/git.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) rename {test_utils => test_tools}/git.py (94%) diff --git a/test_utils/git.py b/test_tools/git.py similarity index 94% rename from test_utils/git.py rename to test_tools/git.py index 83ad6f7..74c161d 100644 --- a/test_utils/git.py +++ b/test_tools/git.py @@ -97,14 +97,10 @@ def get_commit_hash(version, from_dut: bool = False): return output.stdout -def get_release_tags(forbidden_characters: list = None): +def get_tags(): repo_path = os.path.join(TestRun.usr.working_dir, ".git") output = TestRun.executor.run_expect_success(f"git --git-dir={repo_path} tag").stdout - - if not forbidden_characters: - return output.splitlines() - else: - return [v for v in output.splitlines() if all(c not in v for c in forbidden_characters)] + return output.splitlines() def checkout_version(version):