fix: compare whole md5 in the folder check

check_platform_folder.py, the script the site publishes, still accepted
a cut md5 by prefix. It now compares whole digests as Batocera does
(batocera-systems:1088), like verify since cut_md5_owner.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 16:01:04 +01:00
1 parent 7d99685ce1
commit 35be4cf033
4 files changed
+12 -9

No files matched your search

+2 -1
View File
@@ -545,7 +545,8 @@ class AFolderCheckAgreesWithTheVerifier(unittest.TestCase):
for entry in contract["systems"]["s"]["files"]
]
self.assertEqual(found, expected)
self.assertEqual([v for _d, v in found], ["ok", "wrong", "ok", "wrong", "ok", "missing"])
# plain.bin declares a cut md5: Batocera compares the whole string.
self.assertEqual([v for _d, v in found], ["ok", "wrong", "wrong", "wrong", "ok", "missing"])
def test_batocera_from_the_csv_matches_the_verifier(self):
"""A check driven by platform-files.csv, with zipped_file, gives the