Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836671 - sys-apps/portage adds / to SANDBOX_PREDICT during test phase
Summary: sys-apps/portage adds / to SANDBOX_PREDICT during test phase
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 839747
Blocks:
  Show dependency tree
 
Reported: 2022-04-03 01:34 UTC by Mike Gilbert
Modified: 2022-04-24 15:42 UTC (History)
1 user (show)

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-04-03 01:34:16 UTC
Portage currently adds the root directory (/) to SANDBOX_PREDICT while executing the src_test function.

https://gitweb.gentoo.org/proj/portage.git/tree/bin/phase-functions.sh?h=portage-3.0.30#n505

This effectively silences any sandbox denials that occur while running tests.

I'm not sure this is really a good idea; it can end up masking file access issues during test execution. For example, see bug 836560.
Comment 1 Mike Gilbert gentoo-dev 2022-04-24 15:42:01 UTC
The fallout from this is too much; it's disturbingly common for test suites to try things like rmdir / with failure as the expected result.