From fa430533628b7163ab71443a1a85bfeef3ed2de5 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 23 Oct 2026 08:27:16 +0200 Subject: [PATCH] chore: pin packed zips to the collection bytes --- tests/test_e2e.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_e2e.py b/tests/test_e2e.py index 3c7d1e02..4a92f198 100644 --- a/tests/test_e2e.py +++ b/tests/test_e2e.py @@ -5203,8 +5203,9 @@ struct BurnDriver BurnDrvneogeo = { data = zf.read("dc/testbios.zip") self.assertEqual(hl.md5(data).hexdigest(), h["md5"]) - def test_211_pack_rebuilds_zip_without_declared_hash(self): - """ZIPs without declared hash are rebuilt deterministically.""" + def test_211_pack_keeps_zip_bytes_without_declared_hash(self): + """A ZIP with no declared hash keeps the collection's bytes, so it + hashes to what the install list publishes.""" import io import tempfile @@ -5220,8 +5221,7 @@ struct BurnDriver BurnDrvneogeo = { self.assertIsNotNone(zip_path) with zipfile.ZipFile(zip_path) as zf: data = zf.read("dc/testbios.zip") - # Outer hash differs (1980 timestamps), inner content identical - self.assertNotEqual(hl.md5(data).hexdigest(), h["md5"]) + self.assertEqual(hl.md5(data).hexdigest(), h["md5"]) with zipfile.ZipFile(io.BytesIO(data)) as inner: self.assertEqual(inner.read("rom.bin"), b"rom_content_bytes")