summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2007-03-25 21:54:41 +0000
committerSeemant Kulleen <seemant@gentoo.org>2007-03-25 21:54:41 +0000
commit204a3190d9390ce74bf9a4e8033046bb3bb1eafc (patch)
tree7431363cbf64e2d22178533c7da798ae25f7a1a2 /dev-python/django/django-0.96.ebuild
parentAdd ~ia64 wrt bug 154088 (diff)
downloadhistorical-204a3190d9390ce74bf9a4e8033046bb3bb1eafc.tar.gz
historical-204a3190d9390ce74bf9a4e8033046bb3bb1eafc.tar.bz2
historical-204a3190d9390ce74bf9a4e8033046bb3bb1eafc.zip
fix the src_test -- thanks to mabi for catching the b0rkedness
Package-Manager: portage-2.1.2.2
Diffstat (limited to 'dev-python/django/django-0.96.ebuild')
-rw-r--r--dev-python/django/django-0.96.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/dev-python/django/django-0.96.ebuild b/dev-python/django/django-0.96.ebuild
index 5ba7068cb364..04187168444c 100644
--- a/dev-python/django/django-0.96.ebuild
+++ b/dev-python/django/django-0.96.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-0.96.ebuild,v 1.1 2007/03/24 03:46:19 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-0.96.ebuild,v 1.2 2007/03/25 21:54:41 seemant Exp $
inherit bash-completion distutils eutils versionator
@@ -40,6 +40,15 @@ src_unpack() {
setup.py || die "sed failed"
}
+src_test() {
+ cat >> tests/settings.py << __EOF__
+DATABASE_ENGINE='sqlite3'
+ROOT_URLCONF='tests/urls.py'
+SITE_ID=1
+__EOF__
+ PYTHONPATH="." ${python} tests/runtests.py --settings=settings -v1 || die "tests failed"
+}
+
src_install() {
distutils_python_version
@@ -56,10 +65,3 @@ src_install() {
doins -r examples
fi
}
-
-src_test() {
- cat >> tests/settings.py << __EOF__
-DATABASE_ENGINE='sqlite3'
-__EOF__
- PYTHONPATH="." ${python} tests/runtests.py --settings=settings -v1 || die "tests failed"
-}