debian: honor nocheck in DEB_BUILD_OPTIONS stable
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 31 May 2013 15:10:34 +0200
branchstable
changeset 725 235a942eba3f
parent 724 fa049c1d9445
child 730 ea629193a25e
child 737 c96dd66c6839
debian: honor nocheck in DEB_BUILD_OPTIONS
debian/rules
--- a/debian/rules	Fri May 31 18:47:01 2013 +0200
+++ b/debian/rules	Fri May 31 15:10:34 2013 +0200
@@ -9,8 +9,10 @@
 
 .PHONY: build
 
+ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
 override_dh_auto_test:
 	cd tests &&  python run-tests.py --with-hg=`which hg`
+endif
 
 override_dh_python2:
 	# avoid conflict with mercurial's own hgext/__init__.py