Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 521060 Details for
Bug 647938
Any of many dependency in ebuild with use flags solved wrong ( pkg not installed || pkg installed with a specific use flag )
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
unit test
test_or_blocker.py (text/x-python), 1.13 KB, created by
Zac Medico
on 2018-02-26 04:25:34 UTC
(
hide
)
Description:
unit test
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2018-02-26 04:25:34 UTC
Size:
1.13 KB
patch
obsolete
># Copyright 2018 Gentoo Foundation ># 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 OrBlockerTestCase(TestCase): > > def testOrBlocker(self): > ebuilds = { > 'app-misc/A-1': { > 'EAPI': '6', > 'RDEPEND': '|| ( media-plugins/alsa-plugins !media-sound/pulseaudio )' > }, > 'media-plugins/alsa-plugins-1.1.1': { > 'EAPI': '6', > }, > 'media-sound/pulseaudio-11.1': { > 'EAPI': '6', > }, > } > > installed = { > 'media-plugins/alsa-plugins-1.1.1': { > 'EAPI': '6', > }, > 'media-sound/pulseaudio-11.1': { > 'EAPI': '6', > }, > } > > test_cases = ( > 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 647938
: 521060