Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions problemtools/verifyproblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1730,10 +1730,12 @@ def _gather_testcases(self, item: TestCase | TestCaseGroup) -> list[TestCase]:
if not item.matches_filter(self._context.data_filter):
return []
if isinstance(item, TestCase):
if item.reuse_result_from:
return self._gather_testcases(item.reuse_result_from)
else:
return [item]
# If testcase is symlink, recursively follow the symlinks until we get a real testcase, ignoring
# whether the name of testcases pointed to matches the filter
while item.reuse_result_from:
item = item.reuse_result_from

return [item]
elif item not in self._done_groups:
ret = []
for child in item.get_testcases() + item.get_subgroups():
Expand Down