diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-08-11 13:24:48 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-12 01:17:25 -0700 |
commit | 5bab900f63e98495e7048e972ff3ae4ec53778a7 (patch) | |
tree | 26b5b2cf9847ca0f75bd179ee5fbd613f8a3bd4b | |
parent | 3d2fe9e85f250fa294fe38b66ec642eb457e66a5 (diff) | |
download | portage-5bab900f63e98495e7048e972ff3ae4ec53778a7.tar.gz portage-5bab900f63e98495e7048e972ff3ae4ec53778a7.tar.bz2 portage-5bab900f63e98495e7048e972ff3ae4ec53778a7.zip |
Tests: More slot_collision_handler tests
-rw-r--r-- | pym/portage/tests/resolver/test_slot_collisions.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pym/portage/tests/resolver/test_slot_collisions.py b/pym/portage/tests/resolver/test_slot_collisions.py index a36e193d8..3837d638c 100644 --- a/pym/portage/tests/resolver/test_slot_collisions.py +++ b/pym/portage/tests/resolver/test_slot_collisions.py @@ -17,7 +17,9 @@ class SlotCollisionTestCase(TestCase): "app-misc/Z-1": { }, "app-misc/Z-2": { }, "app-misc/Y-1": { "DEPEND": "=app-misc/Z-1" }, + "app-misc/Y-2": { "DEPEND": ">app-misc/Z-1" }, "app-misc/X-1": { "DEPEND": "=app-misc/Z-2" }, + "app-misc/X-2": { "DEPEND": "<app-misc/Z-2" }, "sci-libs/K-1": { "IUSE": "+foo", "EAPI": 1 }, "sci-libs/L-1": { "DEPEND": "sci-libs/K[-foo]", "EAPI": 2 }, @@ -42,14 +44,21 @@ class SlotCollisionTestCase(TestCase): ignore_mergelist_order = True, slot_collision_solutions = [ {"dev-libs/A-1": {"foo": True}, "dev-libs/D-1": {"foo": True}} ]), - #A version based conflict, nothing we can do. + #A version based conflicts, nothing we can do. ResolverPlaygroundTestCase( - ["app-misc/X", "app-misc/Y"], + ["=app-misc/X-1", "=app-misc/Y-1"], success = False, mergelist = ["app-misc/Z-1", "app-misc/Z-2", "app-misc/X-1", "app-misc/Y-1"], ignore_mergelist_order = True, slot_collision_solutions = [] ), + ResolverPlaygroundTestCase( + ["=app-misc/X-2", "=app-misc/Y-2"], + success = False, + mergelist = ["app-misc/Z-1", "app-misc/Z-2", "app-misc/X-2", "app-misc/Y-2"], + ignore_mergelist_order = True, + slot_collision_solutions = [] + ), #Simple cases. ResolverPlaygroundTestCase( |