diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-02-15 16:33:03 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-02-21 02:13:45 +0000 |
commit | 997058a825a340813532bef77a34425cf4a88eb2 (patch) | |
tree | 2385c4e0ef4f769ce75be0172af896f0837f3339 /bin | |
parent | estrip: Support debug info deduplication with sys-devel/dwz (diff) | |
download | portage-997058a825a340813532bef77a34425cf4a88eb2.tar.gz portage-997058a825a340813532bef77a34425cf4a88eb2.tar.bz2 portage-997058a825a340813532bef77a34425cf4a88eb2.zip |
Support PROPERTIES=test_userpriv not to drop perms for tests
Support PROPERTIES=test_userpriv and a corresponding ALLOW_TEST=userpriv
to disable FEATURES=userpriv when running the test phase. This can be
used e.g. in dev-python/reflink that needs to be able to mount
filesystem on a loopback device for testing.
Bug: https://bugs.gentoo.org/924585
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/portage/pull/1274
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/phase-functions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index cd672a878..ebcf5f242 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -503,7 +503,8 @@ __dyn_test() { fi if has test ${PORTAGE_RESTRICT} && ! has all ${ALLOW_TEST} && - ! { has test_network ${PORTAGE_PROPERTIES} && has network ${ALLOW_TEST}; } + ! { has test_network ${PORTAGE_PROPERTIES} && has network ${ALLOW_TEST}; } && + ! { has test_privileged ${PORTAGE_PROPERTIES} && has privileged ${ALLOW_TEST}; } then einfo "Skipping make test/check due to ebuild restriction." __vecho ">>> Test phase [disabled because of RESTRICT=test]: ${CATEGORY}/${PF}" |