Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/tests/resolver/
Date: Mon, 01 Mar 2021 08:56:56
Message-Id: 1614588918.2c322a4274fafcc04423baecd6880737e1639168.zmedico@gentoo
1 commit: 2c322a4274fafcc04423baecd6880737e1639168
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 1 07:58:33 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 08:55:18 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=2c322a42
7
8 Include --autounmask-backtrack in unit test for bug 773469
9
10 The --autounmask-backtrack option is needed in order to trigger
11 the --binpkg-respect-use=y behavior that appears confusingly
12 similar to --binpkg-respect-use=n behavior.
13
14 Bug: https://bugs.gentoo.org/773469
15 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
16
17 lib/portage/tests/resolver/test_useflags.py | 10 ++++++----
18 1 file changed, 6 insertions(+), 4 deletions(-)
19
20 diff --git a/lib/portage/tests/resolver/test_useflags.py b/lib/portage/tests/resolver/test_useflags.py
21 index 7439dc306..d66da0866 100644
22 --- a/lib/portage/tests/resolver/test_useflags.py
23 +++ b/lib/portage/tests/resolver/test_useflags.py
24 @@ -46,13 +46,15 @@ class UseFlagsTestCase(TestCase):
25 success = True,
26 mergelist = ["dev-libs/A-1"]),
27
28 - # Bug 773469 - Demonstrate --autounmask-use interference with --binpkg-respect-use=y
29 + # In the unit test case for bug 773469, the --autounmask-backtrack option
30 + # is needed in order to trigger the --binpkg-respect-use=y behavior that
31 + # appears confusingly similar to --binpkg-respect-use=n behavior.
32 ResolverPlaygroundTestCase(
33 ["dev-libs/C", "dev-libs/D"],
34 - options={"--usepkg": True, "--binpkg-respect-use": "y"},
35 - success=False,
36 + options={"--usepkg": True, "--binpkg-respect-use": "y", "--autounmask-backtrack": "y"},
37 + success=True,
38 use_changes={"dev-libs/C-1": {"abi_x86_32": True}},
39 - mergelist=["dev-libs/C-1", "[binary]dev-libs/D-1"],
40 + mergelist=["[binary]dev-libs/C-1", "[binary]dev-libs/D-1"],
41 ),
42
43 #--binpkg-respect-use=n: use binpkgs with different use flags