tests/functional2/lang: fix wrong unused file error for generic test group collection

Change-Id: I1c548fcebe45d2a6621987091e3a852b8a9b5765
This commit is contained in:
Commentator2.0
2025-10-18 11:24:00 +00:00
committed by Rutile
parent 4fcfdc66fe
commit 0ac71ea1cc
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -361,6 +361,7 @@ def _collect_generic_test_group(folder: Path) -> tuple[list[LangTest], list[Inva
# Skipping collection to avoid duplicate collection
# when both `.err.exp` and `.out.exp` are provided
# in case of non-error traces
unused -= {file.name}
continue
collected |= {test_name}
full_name = LANG_TEST_ID_PATTERN.format(folder_name=parent_name, test_name=test_name)
+2 -1
View File
@@ -858,4 +858,5 @@ def test_generic_missing_in_file(pytest_command: Command):
)
)
def test_generic_no_duplicate_collection(pytest_command: Command):
pytest_command.run().ok()
res = pytest_command.run().ok()
assert "test_invalid_configuration[name0-reasons0] SKIPPED" in res.stdout_plain