aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-09 15:04:50 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-09 15:15:01 -0800
commit21d9b579dc3fda2105caf3328ac5f0afbd80b9a2 (patch)
tree9db91d924348f379f2e6f6212090549fbe414764 /lib
parentUpdates for portage-2.3.88 release (diff)
downloadportage-21d9b579dc3fda2105caf3328ac5f0afbd80b9a2.tar.gz
portage-21d9b579dc3fda2105caf3328ac5f0afbd80b9a2.tar.bz2
portage-21d9b579dc3fda2105caf3328ac5f0afbd80b9a2.zip
test_virtual_w3m: test with www-client/w3m in @world
Test for behavior reported in bug 649622 comment #10, where depclean removed virtual/w3m-0 even though www-client/w3m was in the world file. Since nothing is removed here, it means that we have not reproduced the behavior reported in this comment. Bug: https://bugs.gentoo.org/649622#c19 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/portage/tests/resolver/test_or_choices.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/portage/tests/resolver/test_or_choices.py b/lib/portage/tests/resolver/test_or_choices.py
index 5679d0b5b..a295c9a22 100644
--- a/lib/portage/tests/resolver/test_or_choices.py
+++ b/lib/portage/tests/resolver/test_or_choices.py
@@ -523,6 +523,35 @@ class OrChoicesTestCase(TestCase):
playground.cleanup()
+ test_cases = (
+
+ # Test for behavior reported in bug 649622 comment #10, where
+ # depclean removed virtual/w3m-0 even though www-client/w3m
+ # was in the world file. Since nothing is removed here, it
+ # means that we have not reproduced the behavior reported in
+ # this comment.
+ ResolverPlaygroundTestCase(
+ [],
+ options={'--depclean': True},
+ success=True,
+ cleanlist=[],
+ ),
+
+ )
+
+ world += ['www-client/w3m']
+
+ playground = ResolverPlayground(ebuilds=ebuilds,
+ installed=installed, world=world, debug=False)
+ try:
+ for test_case in test_cases:
+ playground.run_TestCase(test_case)
+ self.assertEqual(test_case.test_success, True, test_case.fail_msg)
+ finally:
+ playground.debug = False
+ playground.cleanup()
+
+
class OrChoicesLibpostprocTestCase(TestCase):
def testOrChoicesLibpostproc(self):