summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/iputils/iputils-99999999.ebuild')
-rw-r--r--net-misc/iputils/iputils-99999999.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/net-misc/iputils/iputils-99999999.ebuild b/net-misc/iputils/iputils-99999999.ebuild
index 731796a22c5e..dde2cee578c5 100644
--- a/net-misc/iputils/iputils-99999999.ebuild
+++ b/net-misc/iputils/iputils-99999999.ebuild
@@ -110,6 +110,15 @@ src_compile() {
meson_src_compile
}
+src_test() {
+ if has userpriv ${FEATURES} || ${EUID} -ne 0 ; then
+ einfo "Tests require root privileges; Skipping ..."
+ return
+ fi
+
+ meson_src_test
+}
+
src_install() {
meson_src_install