From 69967fe15b98856289fb74549abcefefd7a93213 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Wed, 4 May 2011 15:17:39 +0000 Subject: Run tests only when UID != 0 (bug #363113). (Portage version: 2.2.0_alpha30/cvs/Linux i686) --- dev-vcs/cssc/ChangeLog | 5 ++++- dev-vcs/cssc/cssc-1.3.0.ebuild | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'dev-vcs/cssc') diff --git a/dev-vcs/cssc/ChangeLog b/dev-vcs/cssc/ChangeLog index 3aae398b62bd..4cb903e9e20d 100644 --- a/dev-vcs/cssc/ChangeLog +++ b/dev-vcs/cssc/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-vcs/cssc # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.9 2011/04/11 01:31:11 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.10 2011/05/04 15:17:39 jer Exp $ + + 04 May 2011; Jeroen Roovers cssc-1.3.0.ebuild: + Run tests only when UID != 0 (bug #363113). 11 Apr 2011; Jeroen Roovers -cssc-1.0.1.ebuild: Officially remove the old (bug #312089). diff --git a/dev-vcs/cssc/cssc-1.3.0.ebuild b/dev-vcs/cssc/cssc-1.3.0.ebuild index 3eda53fbba52..613ba582b02d 100644 --- a/dev-vcs/cssc/cssc-1.3.0.ebuild +++ b/dev-vcs/cssc/cssc-1.3.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/dev-vcs/cssc/cssc-1.3.0.ebuild,v 1.2 2011/01/08 18:26:10 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/cssc-1.3.0.ebuild,v 1.3 2011/05/04 15:17:39 jer Exp $ EAPI="2" @@ -27,6 +27,14 @@ src_compile() { emake all || die "emake failed" } +src_test() { + if [[ ${UID} = 0 ]]; then + einfo "Tests will not be run as root" + else + emake check || die + fi +} + src_install () { emake DESTDIR="${D}" install || die "emake install failed" dodoc README NEWS ChangeLog AUTHORS || die "dodoc failed" -- cgit v1.2.3-65-gdbad