From 287636c98ca6841601372d32fb7c66ffdad9eaae Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Oct 2012 23:31:36 -0700 Subject: [PATCH] Add test case for bug #439688. --- .../resolver/test_slot_conflict_rebuild.py | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 pym/portage/tests/resolver/test_slot_conflict_rebuild.py diff --git a/pym/portage/tests/resolver/test_slot_conflict_rebuild.py b/pym/portage/tests/resolver/test_slot_conflict_rebuild.py new file mode 100644 index 000000000..e255e2a53 --- /dev/null +++ b/pym/portage/tests/resolver/test_slot_conflict_rebuild.py @@ -0,0 +1,80 @@ +# Copyright 2012 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 SlotConflictRebuildTestCase(TestCase): + + def testSlotConflictRebuild(self): + + ebuilds = { + + "app-misc/A-1" : { + "EAPI": "5", + "SLOT": "0/1" + }, + + "app-misc/A-2" : { + "EAPI": "5", + "SLOT": "0/2" + }, + + "app-misc/B-0" : { + "EAPI": "5", + "DEPEND": "app-misc/A:=", + "RDEPEND": "app-misc/A:=" + }, + + "app-misc/C-0" : { + "EAPI": "5", + "DEPEND": "