Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 861077 - test_config.ConfigTestCase.testSetCpv test failure due to "bash" not found
Summary: test_config.ConfigTestCase.testSetCpv test failure due to "bash" not found
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-25 21:11 UTC by Mike Gilbert
Modified: 2022-07-25 22:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2022-07-25 21:11:10 UTC
As can be seen on github, this test case is failing since https://github.com/gentoo/portage/commit/b716e3591933300aa3eedff56ab92d54dd17c516.

In ResolverPlayground.__init__(), we usually set up a fake "eprefix" and populate it with symlinks to essential binaries. However, this population gets skipped if the caller passes in a value for eprefix themselves.

I think we should probably refactor the code that sets up the symlinks and call it where needed in the testSetCpv test case.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-25 22:01:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=44ea72efd7378cb26cb58cea7534449b1f4968c6

commit 44ea72efd7378cb26cb58cea7534449b1f4968c6
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2022-07-25 21:36:16 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2022-07-25 21:37:04 +0000

    ResolverPlayground: unconditionally setup essential_binaries
    
    Closes: https://bugs.gentoo.org/861077
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/tests/resolver/ResolverPlayground.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)