From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 41DC3138350 for ; Sun, 9 Feb 2020 23:15:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F657E08BD; Sun, 9 Feb 2020 23:15:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 556F9E08BD for ; Sun, 9 Feb 2020 23:15:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3EE3834E94C for ; Sun, 9 Feb 2020 23:15:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C367F98 for ; Sun, 9 Feb 2020 23:15:35 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1581290101.21d9b579dc3fda2105caf3328ac5f0afbd80b9a2.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/tests/resolver/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/tests/resolver/test_or_choices.py X-VCS-Directories: lib/portage/tests/resolver/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 21d9b579dc3fda2105caf3328ac5f0afbd80b9a2 X-VCS-Branch: master Date: Sun, 9 Feb 2020 23:15:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 53d0a930-57e8-447f-8dc3-5fc5dffa74ed X-Archives-Hash: d5bf00d275bc6be61827a48d497c63da commit: 21d9b579dc3fda2105caf3328ac5f0afbd80b9a2 Author: Zac Medico gentoo org> AuthorDate: Sun Feb 9 23:04:50 2020 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Feb 9 23:15:01 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=21d9b579 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 gentoo.org> lib/portage/tests/resolver/test_or_choices.py | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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):