Move git to tools
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
parent
324edb0eba
commit
40f850c1f9
@ -97,14 +97,10 @@ def get_commit_hash(version, from_dut: bool = False):
|
|||||||
return output.stdout
|
return output.stdout
|
||||||
|
|
||||||
|
|
||||||
def get_release_tags(forbidden_characters: list = None):
|
def get_tags():
|
||||||
repo_path = os.path.join(TestRun.usr.working_dir, ".git")
|
repo_path = os.path.join(TestRun.usr.working_dir, ".git")
|
||||||
output = TestRun.executor.run_expect_success(f"git --git-dir={repo_path} tag").stdout
|
output = TestRun.executor.run_expect_success(f"git --git-dir={repo_path} tag").stdout
|
||||||
|
|
||||||
if not forbidden_characters:
|
|
||||||
return output.splitlines()
|
return output.splitlines()
|
||||||
else:
|
|
||||||
return [v for v in output.splitlines() if all(c not in v for c in forbidden_characters)]
|
|
||||||
|
|
||||||
|
|
||||||
def checkout_version(version):
|
def checkout_version(version):
|
Loading…
Reference in New Issue
Block a user