From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DA16B1392E8 for ; Sat, 24 Jul 2021 16:15:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40B28E0DBE; Sat, 24 Jul 2021 16:15:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2B63DE0DBE for ; Sat, 24 Jul 2021 16:15:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C003340DEB for ; Sat, 24 Jul 2021 16:15:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79008827 for ; Sat, 24 Jul 2021 16:15:42 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1627143329.8864db7c1d679fe66cd93140e2fdd07a7eaf4bb4.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/iputils/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/iputils/iputils-20210722.ebuild net-misc/iputils/iputils-99999999.ebuild X-VCS-Directories: net-misc/iputils/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 8864db7c1d679fe66cd93140e2fdd07a7eaf4bb4 X-VCS-Branch: master Date: Sat, 24 Jul 2021 16:15:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7016eac8-690d-43b3-86ba-9c951efc6692 X-Archives-Hash: 0bdb230e04eb42d64a0f802474ead7b4 commit: 8864db7c1d679fe66cd93140e2fdd07a7eaf4bb4 Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Jul 24 16:12:24 2021 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Jul 24 16:15:29 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8864db7c net-misc/iputils: tests require root privileges Closes: https://bugs.gentoo.org/803851 Package-Manager: Portage-3.0.21, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann gentoo.org> net-misc/iputils/iputils-20210722.ebuild | 9 +++++++++ net-misc/iputils/iputils-99999999.ebuild | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/net-misc/iputils/iputils-20210722.ebuild b/net-misc/iputils/iputils-20210722.ebuild index 731796a22c5..dde2cee578c 100644 --- a/net-misc/iputils/iputils-20210722.ebuild +++ b/net-misc/iputils/iputils-20210722.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 diff --git a/net-misc/iputils/iputils-99999999.ebuild b/net-misc/iputils/iputils-99999999.ebuild index 731796a22c5..dde2cee578c 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