Note curious testBacktrackMissedUpdates() failure
authorZac Medico <zmedico@gentoo.org>
Mon, 4 Oct 2010 02:26:22 +0000 (19:26 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 4 Oct 2010 02:26:22 +0000 (19:26 -0700)
pym/portage/tests/resolver/test_backtracking.py

index c8d04be8399f20d84a988d179d6c458c9794be7c..d862d3dc7c3983934da0ff8d104621b87a30cfab 100644 (file)
@@ -137,6 +137,11 @@ class BacktrackingTestCase(TestCase):
                An update is missed due to a dependency on an older version.
                """
 
+               # NOTE: This test fails if the order of slot conflict
+               # backtrack_data is reversed inside depgraph._add_pkg().
+               # This may indicate that Backtracker is failing to generate
+               # the appropriate nodes to explore in this case.
+
                ebuilds = {
                        "dev-libs/A-1": { },
                        "dev-libs/A-2": { },
@@ -148,10 +153,12 @@ class BacktrackingTestCase(TestCase):
                        "dev-libs/B-1": { "USE": "", "RDEPEND": "<=dev-libs/A-1" },
                        }
 
+               options = {'--update' : True, '--deep' : True, '--selective' : True}
+
                test_cases = (
                                ResolverPlaygroundTestCase(
                                        ["dev-libs/A", "dev-libs/B"],
-                                       options = {'--update' : True, '--deep' : True},
+                                       options = options,
                                        all_permutations = True,
                                        mergelist = [],
                                        success = True),