From: David James Date: Wed, 4 May 2011 17:35:02 +0000 (-0700) Subject: test_rebuild: test --rebuild-if-new-rev more X-Git-Tag: v2.2.0_alpha31~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b697efa947ef88effc15ee86f766af68ec6097a;p=portage.git test_rebuild: test --rebuild-if-new-rev more --- diff --git a/pym/portage/tests/resolver/test_rebuild.py b/pym/portage/tests/resolver/test_rebuild.py index 1f4b6ae24..b9c4d6d65 100644 --- a/pym/portage/tests/resolver/test_rebuild.py +++ b/pym/portage/tests/resolver/test_rebuild.py @@ -110,6 +110,21 @@ class RebuildTestCase(TestCase): 'sys-apps/b-2', 'sys-apps/e-2', 'sys-apps/g-2'], ignore_mergelist_order = True, success = True), + + ResolverPlaygroundTestCase( + ["=sys-libs/x-1"], + options = {"--rebuild-if-new-rev" : True}, + mergelist = ['sys-libs/x-1'], + ignore_mergelist_order = True, + success = True), + + ResolverPlaygroundTestCase( + ["=sys-libs/x-1"], + options = {"--rebuild-if-unbuilt" : True}, + mergelist = ['sys-libs/x-1', 'sys-apps/a-2', + 'sys-apps/b-2', 'sys-apps/e-2', 'sys-apps/g-2'], + ignore_mergelist_order = True, + success = True), ) playground = ResolverPlayground(ebuilds=ebuilds,