fix: name a missing pack in the consistency step

This commit is contained in:
Abdessamad Derraz committed 2026-11-05 11:48:51 +01:00
1 parent f285c32d67
commit f195e714c4
2 files changed
+7 -2

No files matched your search

+2 -1
View File
@@ -405,7 +405,8 @@ def check_consistency(
elif released is not None and not (v_names & released):
print(f" {v_label}: {v_ok}/{v_total} (no release pack, served by the installer)")
else:
print(f" {v_label}: {v_ok}/{v_total} (no separate pack)")
print(f" {v_label}: MISSING pack: verify judged {v_ok}/{v_total} "
"but the build wrote no pack for it")
all_ok = False
status = "OK" if all_ok else "FAILED"
+5 -1
View File
@@ -167,9 +167,13 @@ class APlatformWithoutAPackFailsNoCheck(unittest.TestCase):
import pipeline
verify = self.VERIFY + "Batocera: 3/3 OK [md5]\n"
with contextlib.redirect_stdout(io.StringIO()):
with contextlib.redirect_stdout(io.StringIO()) as out:
self.assertFalse(pipeline.check_consistency(
verify, self.PACK, pipeline.release_pack_keys(PLATFORMS)))
# The failing line says it fails: "(no separate pack)" read like
# the installer-only note above it.
self.assertIn("Batocera: MISSING pack: verify judged 3/3 but the build wrote no pack for it",
out.getvalue())
def test_the_pipeline_passes_the_release_platforms(self):
source = (REPO_ROOT / "scripts" / "pipeline.py").read_text(encoding="utf-8")