From 2c322a4274fafcc04423baecd6880737e1639168 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 28 Feb 2021 23:58:33 -0800 Subject: Include --autounmask-backtrack in unit test for bug 773469 The --autounmask-backtrack option is needed in order to trigger the --binpkg-respect-use=y behavior that appears confusingly similar to --binpkg-respect-use=n behavior. Bug: https://bugs.gentoo.org/773469 Signed-off-by: Zac Medico --- lib/portage/tests/resolver/test_useflags.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/portage/tests/resolver/test_useflags.py b/lib/portage/tests/resolver/test_useflags.py index 7439dc306..d66da0866 100644 --- a/lib/portage/tests/resolver/test_useflags.py +++ b/lib/portage/tests/resolver/test_useflags.py @@ -46,13 +46,15 @@ class UseFlagsTestCase(TestCase): success = True, mergelist = ["dev-libs/A-1"]), - # Bug 773469 - Demonstrate --autounmask-use interference with --binpkg-respect-use=y + # In the unit test case for bug 773469, the --autounmask-backtrack option + # is needed in order to trigger the --binpkg-respect-use=y behavior that + # appears confusingly similar to --binpkg-respect-use=n behavior. ResolverPlaygroundTestCase( ["dev-libs/C", "dev-libs/D"], - options={"--usepkg": True, "--binpkg-respect-use": "y"}, - success=False, + options={"--usepkg": True, "--binpkg-respect-use": "y", "--autounmask-backtrack": "y"}, + success=True, use_changes={"dev-libs/C-1": {"abi_x86_32": True}}, - mergelist=["dev-libs/C-1", "[binary]dev-libs/D-1"], + mergelist=["[binary]dev-libs/C-1", "[binary]dev-libs/D-1"], ), #--binpkg-respect-use=n: use binpkgs with different use flags -- cgit v1.2.3-65-gdbad