Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 757444 Details for
Bug 828136
sys-apps/portage mishandles ebuilds containing two identical || blocks
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
unit test case which demonstrates the unnecessary slot upgrade
test_unecessary_slot_upgrade.py (text/x-python), 1.45 KB, created by
Zac Medico
on 2021-12-04 23:08:38 UTC
(
hide
)
Description:
unit test case which demonstrates the unnecessary slot upgrade
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2021-12-04 23:08:38 UTC
Size:
1.45 KB
patch
obsolete
># Copyright 2021 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >from portage.tests import TestCase >from portage.tests.resolver.ResolverPlayground import ( > ResolverPlayground, > ResolverPlaygroundTestCase, >) > > >class UnnecessarySlotrUpgadeTestCase(TestCase): > def testUnnecessarySlotrUpgade(self): > ebuilds = { > "app-misc/a-1": { > "EAPI": "8", > "RDEPEND": "|| ( dev-lang/python:3.10 dev-lang/python:3.9 ) || ( dev-lang/python:3.10 dev-lang/python:3.9 )", > }, > "dev-lang/python-3.9": {"SLOT": "3.9"}, > "dev-lang/python-3.10": {"SLOT": "3.10"}, > } > > installed = { > "dev-lang/python-3.9": {"SLOT": "3.9"}, > } > > test_cases = ( > # Test bug 828136, where an unnecessary python slot upgrade > # was triggered. > ResolverPlaygroundTestCase( > [ > "app-misc/a", > ], > success=True, > mergelist=("app-misc/a-1",), > ), > ) > > playground = ResolverPlayground( > debug=True, ebuilds=ebuilds, installed=installed > ) > > try: > for test_case in test_cases: > playground.run_TestCase(test_case) > self.assertEqual(test_case.test_success, True, test_case.fail_msg) > finally: > playground.debug = False > playground.cleanup()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 828136
: 757444