1 |
commit: 21d9b579dc3fda2105caf3328ac5f0afbd80b9a2 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 9 23:04:50 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 23:15:01 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=21d9b579 |
7 |
|
8 |
test_virtual_w3m: test with www-client/w3m in @world |
9 |
|
10 |
Test for behavior reported in bug 649622 comment #10, where |
11 |
depclean removed virtual/w3m-0 even though www-client/w3m |
12 |
was in the world file. Since nothing is removed here, it |
13 |
means that we have not reproduced the behavior reported in |
14 |
this comment. |
15 |
|
16 |
Bug: https://bugs.gentoo.org/649622#c19 |
17 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
18 |
|
19 |
lib/portage/tests/resolver/test_or_choices.py | 29 +++++++++++++++++++++++++++ |
20 |
1 file changed, 29 insertions(+) |
21 |
|
22 |
diff --git a/lib/portage/tests/resolver/test_or_choices.py b/lib/portage/tests/resolver/test_or_choices.py |
23 |
index 5679d0b5b..a295c9a22 100644 |
24 |
--- a/lib/portage/tests/resolver/test_or_choices.py |
25 |
+++ b/lib/portage/tests/resolver/test_or_choices.py |
26 |
@@ -523,6 +523,35 @@ class OrChoicesTestCase(TestCase): |
27 |
playground.cleanup() |
28 |
|
29 |
|
30 |
+ test_cases = ( |
31 |
+ |
32 |
+ # Test for behavior reported in bug 649622 comment #10, where |
33 |
+ # depclean removed virtual/w3m-0 even though www-client/w3m |
34 |
+ # was in the world file. Since nothing is removed here, it |
35 |
+ # means that we have not reproduced the behavior reported in |
36 |
+ # this comment. |
37 |
+ ResolverPlaygroundTestCase( |
38 |
+ [], |
39 |
+ options={'--depclean': True}, |
40 |
+ success=True, |
41 |
+ cleanlist=[], |
42 |
+ ), |
43 |
+ |
44 |
+ ) |
45 |
+ |
46 |
+ world += ['www-client/w3m'] |
47 |
+ |
48 |
+ playground = ResolverPlayground(ebuilds=ebuilds, |
49 |
+ installed=installed, world=world, debug=False) |
50 |
+ try: |
51 |
+ for test_case in test_cases: |
52 |
+ playground.run_TestCase(test_case) |
53 |
+ self.assertEqual(test_case.test_success, True, test_case.fail_msg) |
54 |
+ finally: |
55 |
+ playground.debug = False |
56 |
+ playground.cleanup() |
57 |
+ |
58 |
+ |
59 |
class OrChoicesLibpostprocTestCase(TestCase): |
60 |
|
61 |
def testOrChoicesLibpostproc(self): |