[Python-modules-commits] r30434 - in packages/django-reversion/trunk/debian (rules)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Mon Sep 1 05:45:38 UTC 2014


    Date: Monday, September 1, 2014 @ 05:45:35
  Author: fladi-guest
Revision: 30434

Use test project provided by upstream.

Modified:
  packages/django-reversion/trunk/debian/rules

Modified: packages/django-reversion/trunk/debian/rules
===================================================================
--- packages/django-reversion/trunk/debian/rules	2014-09-01 01:07:53 UTC (rev 30433)
+++ packages/django-reversion/trunk/debian/rules	2014-09-01 05:45:35 UTC (rev 30434)
@@ -11,16 +11,9 @@
 .PHONY: override_dh_auto_test
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	django-admin startproject testproject
-	if [ -d testproject/testproject ]; then \
-		cp debian/settings.py testproject/testproject/settings.py; \
-	else \
-		cp debian/settings.py testproject ; \
-	fi
 	set -e; \
 	for python in $(shell pyversions -r); do \
-		rm -f testproject/test.db3 ; \
-		PYTHONPATH="src:testproject" $$python testproject/manage.py test --settings=testproject.settings reversion ; \
+		PYTHONPATH="src" $$python src/test_project/manage.py test reversion; \
 	done
 endif
 
@@ -41,4 +34,3 @@
 override_dh_clean:
 	dh_clean
 	rm -rf docs/.build
-	rm -rf testproject




More information about the Python-modules-commits mailing list