commit:     2c322a4274fafcc04423baecd6880737e1639168
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  1 07:58:33 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Mar  1 08:55:18 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=2c322a42

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 <zmedico <AT> gentoo.org>

 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

Reply via email to