summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-10-11 04:57:29 +0000
committerPeter Volkov <pva@gentoo.org>2011-10-11 04:57:29 +0000
commit5b1e6f08c5ce42222fa581dec924e5aaf86e66f4 (patch)
treea5c4755ad61bc8b88a328f035d8d23472ec6a595 /net-misc/ipv6calc/ipv6calc-0.92.0.ebuild
parentVersion bump. (diff)
downloadgentoo-2-5b1e6f08c5ce42222fa581dec924e5aaf86e66f4.tar.gz
gentoo-2-5b1e6f08c5ce42222fa581dec924e5aaf86e66f4.tar.bz2
gentoo-2-5b1e6f08c5ce42222fa581dec924e5aaf86e66f4.zip
Disable tests that fail if started from root user.
(Portage version: 2.1.10.25/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/ipv6calc/ipv6calc-0.92.0.ebuild')
-rw-r--r--net-misc/ipv6calc/ipv6calc-0.92.0.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/net-misc/ipv6calc/ipv6calc-0.92.0.ebuild b/net-misc/ipv6calc/ipv6calc-0.92.0.ebuild
index 552796f35061..e1e8f0a97503 100644
--- a/net-misc/ipv6calc/ipv6calc-0.92.0.ebuild
+++ b/net-misc/ipv6calc/ipv6calc-0.92.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ipv6calc/ipv6calc-0.92.0.ebuild,v 1.1 2011/10/10 19:49:32 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ipv6calc/ipv6calc-0.92.0.ebuild,v 1.2 2011/10/11 04:57:29 pva Exp $
EAPI="4"
inherit fixheadtails
@@ -31,6 +31,14 @@ src_compile() {
emake DEFAULT_CFLAGS=""
}
+src_test() {
+ if [[ ${EUID} -eq 0 ]]; then
+ # Disable tests that fail as root
+ echo true > ipv6logstats/test_ipv6logstats.sh
+ fi
+ default
+}
+
src_install() {
emake DESTDIR="${D}" install
dodoc ChangeLog CREDITS README TODO USAGE