From d81a873b1530ea53f440b654abd41907c84f2ac2 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Mon, 9 Nov 2026 12:16:32 +0100 Subject: [PATCH] fix: allow advancemame's removed hng64 system --- tests/test_profile_sync.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_profile_sync.py b/tests/test_profile_sync.py index 67b48ca29..a7d762cac 100644 --- a/tests/test_profile_sync.py +++ b/tests/test_profile_sync.py @@ -3076,7 +3076,10 @@ class TestDeliberatelyFrozenPin(TestBuildReport): # builds mame2014, mess2015 and cdi2015, three system sets. And a # live build can add a system its frozen revision lacked # (advancemame's coh1002v, after advmame-1.4), so the frozen one's - # systems are a subset, not an equal set. + # systems are a subset, not an equal set. A live build can also drop + # a system upstream deleted: advancemame removed its Hyper Neo Geo 64 + # driver in dff25b6ee7, which advmame-1.4 still carries. + removed_upstream = {("advmame-1.4", "advancemame"): {"hyper-neogeo64"}} pairs = 0 for names in by_source.values(): frozen = [ @@ -3093,7 +3096,8 @@ class TestDeliberatelyFrozenPin(TestBuildReport): pairs += 1 with self.subTest(frozen=old, live=new): self.assertLessEqual( - set(profiles[old].get("systems") or []), + set(profiles[old].get("systems") or []) + - removed_upstream.get((old, new), set()), set(profiles[new].get("systems") or []), ) if (old, new) not in builds_differ: