Skip to content

Commit

Permalink
Remove .yaml suffix from test names (#809)
Browse files Browse the repository at this point in the history
This commit fixes a regression in which the `.yaml` suffix is
incorrectly appended to the names of tests, introduced when support
for suites directories was added.
  • Loading branch information
hwikle-lanl authored Feb 4, 2025
1 parent 4cbc607 commit 8dad702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pavilion/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def suite_info(self) -> List[Tuple[str, str, Path]]:

if tests_dir.exists():
tests = [file for file in tests_dir.iterdir() if file.suffix.lower() == ".yaml"]
names = [test.name for test in tests]
names = [test.stem for test in tests]
labels = [label] * len(tests)

suite_infos.extend(zip(labels, names, tests))
Expand Down

0 comments on commit 8dad702

Please sign in to comment.