diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-05-03 22:03:38 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-05-03 22:03:38 +0000 |
commit | 4f12dc4b7970af93d2bde17ad9cbbaedfb85c551 (patch) | |
tree | 648ae10aad31a16b72bac725e01b9530d69ae4e6 /eclass/db.eclass | |
parent | [kde-base] Drop KDE SC 4.4.1 (diff) | |
download | gentoo-2-4f12dc4b7970af93d2bde17ad9cbbaedfb85c551.tar.gz gentoo-2-4f12dc4b7970af93d2bde17ad9cbbaedfb85c551.tar.bz2 gentoo-2-4f12dc4b7970af93d2bde17ad9cbbaedfb85c551.zip |
Bug #263797: Do not run the sys-libs/db testsuite as root.
Diffstat (limited to 'eclass/db.eclass')
-rw-r--r-- | eclass/db.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/db.eclass b/eclass/db.eclass index 02e5fb018204..c1abfe82c8b1 100644 --- a/eclass/db.eclass +++ b/eclass/db.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.31 2009/07/29 20:25:25 pauldv Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.32 2010/05/03 22:03:38 robbat2 Exp $ # This is a common location for functions used in the sys-libs/db ebuilds # # Bugs: pauldv@gentoo.org @@ -116,6 +116,11 @@ db_src_install_usrlibcleanup() { } db_src_test() { + if [[ $UID -eq 0 ]]; then + ewarn "You must run the testsuite as non-root, skipping" + elog "You must run the testsuite as non-root, skipping" + return 0 + fi if useq tcl; then einfo "Running sys-libs/db testsuite" ewarn "This can take 6+ hours on modern machines" |