[Python-modules-commits] r17013 - in packages/pyke/trunk/debian (rules)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon May 16 04:09:19 UTC 2011


    Date: Monday, May 16, 2011 @ 04:08:52
  Author: eriol-guest
Revision: 17013

Enabled tests for all supported python versions

Modified:
  packages/pyke/trunk/debian/rules

Modified: packages/pyke/trunk/debian/rules
===================================================================
--- packages/pyke/trunk/debian/rules	2011-05-16 02:26:53 UTC (rev 17012)
+++ packages/pyke/trunk/debian/rules	2011-05-16 04:08:52 UTC (rev 17013)
@@ -7,7 +7,15 @@
 	rm -rf debian/tmp/usr/pyke/
 
 override_dh_auto_test:
-	/usr/bin/nosetests --with-doctest pyke/
+	# Run tests twice to make sure that all of the tests run properly
+	# whether they have to compile the knowledge base sources or not.
+	# Compilation of the knowledge base will occur on first run.
+	set -e; \
+	for python in $(shell pyversions -rs); do \
+		$$python /usr/bin/nosetests --with-doctest pyke/ \
+		$$python /usr/bin/nosetests --with-doctest pyke/ \
+		rm -rf compiled_krb \
+	done
 
 override_dh_installchangelogs:
 	dh_installchangelogs RELEASE_NOTES-1.txt upstream




More information about the Python-modules-commits mailing list