Add tagging config to pass params easier (#2234)

* Add tagging config to pass params easier

* Shorter function signatures
This commit is contained in:
Ayaz Salikhov
2025-02-22 01:05:54 +00:00
committed by GitHub
parent 18e09a7872
commit 8fc97cb36b
15 changed files with 148 additions and 205 deletions

View File

@@ -24,14 +24,12 @@ _IMAGE_PARENT = {
}
def get_test_dirs(
short_image_name: str | None,
) -> list[Path]:
if short_image_name is None:
def get_test_dirs(image: str | None) -> list[Path]:
if image is None:
return []
test_dirs = get_test_dirs(_IMAGE_PARENT[short_image_name])
current_test_dir = IMAGE_SPECIFIC_TESTS_DIR / short_image_name
test_dirs = get_test_dirs(_IMAGE_PARENT[image])
current_test_dir = IMAGE_SPECIFIC_TESTS_DIR / image
assert current_test_dir.exists(), f"{current_test_dir} does not exist."
test_dirs.append(current_test_dir)
return test_dirs