Issue: sys-apps/portage-3.0.8 fails tests.
Discovered on: ppc (internal ref: ppc_at)
Created attachment 664861 [details]
build log and emerge --info
The bug has been referenced in the following commit(s):
Author: Zac Medico <email@example.com>
AuthorDate: 2020-10-12 17:57:12 +0000
Commit: Zac Medico <firstname.lastname@example.org>
CommitDate: 2020-10-12 18:00:05 +0000
SimpleEmergeTestCase: fix TypeError: write() argument must be str, not int
Fixes: 0552665627bf ("SimpleEmergeTestCase: run tests in coroutine method")
Signed-off-by: Zac Medico <email@example.com>
lib/portage/tests/emerge/test_simple.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
The "TypeError: write() argument must be str, not int" error is triggered by an earlier command failure here:
> testSimple (portage.tests.emerge.test_simple.SimpleEmergeTestCase) ... * This action can remove important packages! In order to be safer, use
> * `emerge -pv --depclean <atom>` to check for reverse dependencies before
> * removing packages.
Normally it would output some kind of informative error message to stderr, but instead it failed silently and see nothing more than ERROR (the preceding message about depclean is unrelated).
Is this failure repoducible?
The TypeError occurred while processing a message that was written to stdout, and the fix in 3cd49702014c6641190c858744ce4ea4a047366f will allow see that message which may provide a clue about what went wrong.