summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-07-24 12:30:04 -0400
committerMike Gilbert <floppym@gentoo.org>2021-07-24 12:30:04 -0400
commit11a8f0371e473e4492f4245ad45dfb81950029cc (patch)
tree835db7737d9f00c2a1bc96a95f9f60832c9b2ff3
parentnet-misc/iputils: tests require root privileges (diff)
downloadgentoo-11a8f0371e473e4492f4245ad45dfb81950029cc.tar.gz
gentoo-11a8f0371e473e4492f4245ad45dfb81950029cc.tar.bz2
gentoo-11a8f0371e473e4492f4245ad45dfb81950029cc.zip
net-misc/iputils: fix root check in src_test
Bug: https://bugs.gentoo.org/803851 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--net-misc/iputils/iputils-20210722.ebuild2
-rw-r--r--net-misc/iputils/iputils-99999999.ebuild2
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