docs: say what the emuscv BIOS check does

The note judged the CHECKBIOS handling instead of describing it. It now says what memory.cpp:80 does: the MD5 comparison runs only for YES_VAL, so AUTO accepts any content. A rejected BIOS is filled with 0xFF (line 97), not zeroed.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 04:07:22 +01:00
1 parent 47ece52410
commit 5df3a707e6
2 files changed
+25 -3

No files matched your search

+21
View File
@@ -178,6 +178,27 @@ class NoMarketingVocabulary(unittest.TestCase):
self.assertEqual(offenders, [], "\n".join(offenders[:40]))
class ProfilesStateNoVerdict(unittest.TestCase):
"""A profile note says what the code does, never what is wrong with
another project's work (wiki/testing-guide.md): emuscv called its
core's option handling a "code bug"."""
VERDICTS = [
re.compile(r"\bcode bug\b", re.IGNORECASE),
]
def test_no_profile_note_passes_a_verdict(self):
offenders = []
for path in sorted((ROOT / "emulators").glob("*.yml")):
text = " ".join(path.read_text(encoding="utf-8").split())
offenders += [
f"{path.name}: {found.group(0)}"
for pattern in self.VERDICTS
for found in pattern.finditer(text)
]
self.assertEqual(offenders, [], "\n".join(offenders))
def _name(*parts: str) -> str:
"""A private name, assembled so that this file does not carry it."""
return "".join(parts)