Enable tests for autoumask with EAPI 4.
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Oct 2010 20:21:59 +0000 (13:21 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Oct 2010 20:21:59 +0000 (13:21 -0700)
pym/portage/tests/resolver/test_autounmask.py

index 760c764874d90de388852a545fc725343ade6550..d06b2fc30de50e32294b0dd1f2900c6967547f9e 100644 (file)
@@ -7,6 +7,9 @@ from portage.tests.resolver.ResolverPlayground import ResolverPlayground, Resolv
 class AutounmaskTestCase(TestCase):
 
        def testAutounmask(self):
+
+               EAPI_4 = '4_pre1'
+
                ebuilds = {
                        #ebuilds to test use changes
                        "dev-libs/A-1": { "SLOT": 1, "DEPEND": "dev-libs/B[foo]", "EAPI": 2}, 
@@ -42,10 +45,10 @@ class AutounmaskTestCase(TestCase):
                        "dev-util/R-1": { "IUSE": "bar" },
 
                        #ebuilds to test interaction with REQUIRED_USE
-                       #~ "app-portage/A-1": { "DEPEND": "app-portage/B[foo]", "EAPI": 2 }, 
-                       #~ "app-portage/A-2": { "DEPEND": "app-portage/B[foo=]", "IUSE": "+foo", "REQUIRED_USE": "foo", "EAPI": 4 }, 
-#~ 
-                       #~ "app-portage/B-1": { "IUSE": "foo +bar", "REQUIRED_USE": "^^ ( foo bar )", "EAPI": 4 }, 
+                       "app-portage/A-1": { "DEPEND": "app-portage/B[foo]", "EAPI": 2 }, 
+                       "app-portage/A-2": { "DEPEND": "app-portage/B[foo=]", "IUSE": "+foo", "REQUIRED_USE": "foo", "EAPI": EAPI_4 }, 
+
+                       "app-portage/B-1": { "IUSE": "foo +bar", "REQUIRED_USE": "^^ ( foo bar )", "EAPI": EAPI_4 }, 
                        }
 
                test_cases = (
@@ -168,16 +171,16 @@ class AutounmaskTestCase(TestCase):
                                        use_changes = { "dev-util/R-1": { "bar": True } }),
 
                                #Test interaction with REQUIRED_USE.
-                               #~ ResolverPlaygroundTestCase(
-                                       #~ ["=app-portage/A-1"],
-                                       #~ options = { "--autounmask": True },
-                                       #~ use_changes = None,
-                                       #~ success = False),
-                               #~ ResolverPlaygroundTestCase(
-                                       #~ ["=app-portage/A-2"],
-                                       #~ options = { "--autounmask": True },
-                                       #~ use_changes = None,
-                                       #~ success = False),
+                               ResolverPlaygroundTestCase(
+                                       ["=app-portage/A-1"],
+                                       options = { "--autounmask": True },
+                                       use_changes = None,
+                                       success = False),
+                               ResolverPlaygroundTestCase(
+                                       ["=app-portage/A-2"],
+                                       options = { "--autounmask": True },
+                                       use_changes = None,
+                                       success = False),
                        )
 
                playground = ResolverPlayground(ebuilds=ebuilds)