From 11416f3a64c6f32619a340376ed1730dbf0bc9f7 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Thu, 8 Oct 2026 19:13:14 +0000 Subject: [PATCH] :white_check_mark: Stabilize blacklist recipe test Compare required recipes using the same bootstrap while allowing `genericndkbuild` as a valid dependency choice. Refs #3379 --- tests/test_graph.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_graph.py b/tests/test_graph.py index 1ac9c68090..71e12f1ddf 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -90,10 +90,15 @@ def test_blacklist(): ) # Now, obtain again with blacklist: build_order_2, python_modules_2, bs_2 = get_recipe_order_and_bootstrap( - ctx, ["python3", "kivy"], None, blacklist=["libffi"] + ctx, ["python3", "kivy"], bs, blacklist=["libffi"] ) + assert "libffi" in build_order assert "libffi" not in build_order_2 - assert set(build_order_2).union({"libffi"}) == set(build_order) + assert bs_2 == bs + # genericndkbuild is another valid choice for pyjnius alongside sdl2. + assert set(build_order_2) - {"genericndkbuild"} == ( + set(build_order) - {"libffi", "genericndkbuild"} + ) # Check that we get a conflict when using webview and kivy combined: wbootstrap = Bootstrap.get_bootstrap('webview', ctx)