Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions tests/test_the_test/test_update_ffe_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def test_copy_fixture_snapshot_imports_only_consumed_fixture_data(tmp_path: Path
(suite / "cases").mkdir(parents=True)
(suite / "ufc-config.json").write_text('{"flags": {"flag": {}}}', encoding="utf-8")
(suite / "cases" / "case.json").write_text('[{"flag": "flag"}]', encoding="utf-8")
(suite / "AGENTS.md").write_text("upstream instructions", encoding="utf-8")
_write_selection_vectors(source)
(source / "flag-selection" / "README.md").write_text("upstream documentation", encoding="utf-8")
(source / "flag-selection" / "AGENTS.md").write_text("upstream instructions", encoding="utf-8")
Expand All @@ -77,6 +78,7 @@ def test_copy_fixture_snapshot_imports_only_consumed_fixture_data(tmp_path: Path
assert (snapshot / "evaluation-cases" / "case.json").is_file()
for path in (Path("ufc-config.json"), Path("cases/case.json")):
assert (snapshot / "evaluation-suites" / "feature" / path).read_bytes() == (suite / path).read_bytes()
assert not (snapshot / "evaluation-suites" / "feature" / "AGENTS.md").exists()
assert not (snapshot / "README.md").exists()
assert not (snapshot / "AGENTS.md").exists()
assert not (snapshot / "precomputed-assignments").exists()
Expand Down
3 changes: 3 additions & 0 deletions utils/scripts/update_ffe_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def _copy_entry(source: Path, destination: Path) -> None:

destination.mkdir(parents=True, exist_ok=True)
for child in sorted(source.iterdir()):
# Upstream documentation, such as a suite's AGENTS.md, is not fixture data.
if child.suffix == ".md" and not child.is_dir():
continue
_copy_entry(child, destination / child.name)


Expand Down
Loading