commit: 11a8f0371e473e4492f4245ad45dfb81950029cc Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Sat Jul 24 16:30:04 2021 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Sat Jul 24 16:30:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11a8f037
net-misc/iputils: fix root check in src_test Bug: https://bugs.gentoo.org/803851 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> net-misc/iputils/iputils-20210722.ebuild | 2 +- net-misc/iputils/iputils-99999999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-misc/iputils/iputils-20210722.ebuild b/net-misc/iputils/iputils-20210722.ebuild index dde2cee578c..0e3d015bdb9 100644 --- a/net-misc/iputils/iputils-20210722.ebuild +++ b/net-misc/iputils/iputils-20210722.ebuild @@ -111,7 +111,7 @@ src_compile() { } src_test() { - if has userpriv ${FEATURES} || ${EUID} -ne 0 ; then + if [[ ${EUID} != 0 ]]; then einfo "Tests require root privileges; Skipping ..." return fi diff --git a/net-misc/iputils/iputils-99999999.ebuild b/net-misc/iputils/iputils-99999999.ebuild index dde2cee578c..0e3d015bdb9 100644 --- a/net-misc/iputils/iputils-99999999.ebuild +++ b/net-misc/iputils/iputils-99999999.ebuild @@ -111,7 +111,7 @@ src_compile() { } src_test() { - if has userpriv ${FEATURES} || ${EUID} -ne 0 ; then + if [[ ${EUID} != 0 ]]; then einfo "Tests require root privileges; Skipping ..." return fi