summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/resolver/test_autounmask.py
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-09-26 23:08:03 +0200
committerZac Medico <zmedico@gentoo.org>2010-09-26 23:31:04 -0700
commitc6ed07840d2791ef5ce921322402856c72c6dcc8 (patch)
treecce301e269d286c328633252a3fe80a9d7334b35 /pym/portage/tests/resolver/test_autounmask.py
parentb6c2a1e0a6657e36b1dd5a3c28461698d0e1a0d6 (diff)
downloadportage-c6ed07840d2791ef5ce921322402856c72c6dcc8.tar.gz
portage-c6ed07840d2791ef5ce921322402856c72c6dcc8.tar.bz2
portage-c6ed07840d2791ef5ce921322402856c72c6dcc8.zip
backtracking: Take all branches in case of slot collisionsv2.2_rc88
Diffstat (limited to 'pym/portage/tests/resolver/test_autounmask.py')
-rw-r--r--pym/portage/tests/resolver/test_autounmask.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pym/portage/tests/resolver/test_autounmask.py b/pym/portage/tests/resolver/test_autounmask.py
index ce3ce38f0..760c76487 100644
--- a/pym/portage/tests/resolver/test_autounmask.py
+++ b/pym/portage/tests/resolver/test_autounmask.py
@@ -194,6 +194,11 @@ class AutounmaskTestCase(TestCase):
"dev-libs/A-1": { "LICENSE": "TEST" },
"dev-libs/B-1": { "LICENSE": "TEST", "IUSE": "foo", "KEYWORDS": "~x86"},
"dev-libs/C-1": { "DEPEND": "dev-libs/B[foo]", "EAPI": 2 },
+
+ "dev-libs/D-1": { "DEPEND": "dev-libs/E dev-libs/F", "LICENSE": "TEST" },
+ "dev-libs/E-1": { "LICENSE": "TEST" },
+ "dev-libs/E-2": { "LICENSE": "TEST" },
+ "dev-libs/F-1": { "DEPEND": "=dev-libs/E-1", "LICENSE": "TEST" },
}
test_cases = (
@@ -217,6 +222,14 @@ class AutounmaskTestCase(TestCase):
license_changes = { "dev-libs/B-1": set(["TEST"]) },
unstable_keywords = ["dev-libs/B-1"],
use_changes = { "dev-libs/B-1": { "foo": True } }),
+
+ #Test license with backtracking.
+ ResolverPlaygroundTestCase(
+ ["=dev-libs/D-1"],
+ options = {"--autounmask": True},
+ success = False,
+ mergelist = ["dev-libs/E-1", "dev-libs/F-1", "dev-libs/D-1"],
+ license_changes = { "dev-libs/D-1": set(["TEST"]), "dev-libs/E-1": set(["TEST"]), "dev-libs/E-2": set(["TEST"]), "dev-libs/F-1": set(["TEST"]) }),
)
playground = ResolverPlayground(ebuilds=ebuilds)