From 234c4cf46b15730fa0e5f684d67d6efd72d1122a Mon Sep 17 00:00:00 2001 From: Paul Ferrell Date: Thu, 3 Apr 2025 12:01:18 -0600 Subject: [PATCH] Fix find_all_tests method of resolver It was finding old tests/* tests and suites//suite.yaml style tests, but not suites/.yaml style tests. --- lib/pavilion/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pavilion/config.py b/lib/pavilion/config.py index 08305815b..097890d67 100644 --- a/lib/pavilion/config.py +++ b/lib/pavilion/config.py @@ -270,6 +270,11 @@ def suite_info(self) -> List[Tuple[str, str, Path]]: suite_infos.extend(zip(labels, names, tests)) if suites_dir.exists(): + suites = [file for file in suites_dir.iterdir() if file.suffix.lower() == ".yaml"] + names = [suite.stem for suite in suites] + labels = [label] * len(suites) + suite_infos.extend(zip(labels, names, suites)) + suites = [sdir / "suite.yaml" for sdir in suites_dir.iterdir()] suites = list(filter(exists, suites)) names = [suite.parent.name for suite in suites]