diff options
| author | Julian Andres Klode <jak@debian.org> | 2011-04-04 12:11:52 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2011-04-04 12:11:52 +0200 |
| commit | 957ea09a244c9d5f749f3973545a4d4b064998df (patch) | |
| tree | c681342235c408e9dd286663fa0a9e2217f36d0a /debian/rules | |
| parent | 91d0136c3816ef2d2135ddd64d3dc50d2170354f (diff) | |
| download | python-apt-957ea09a244c9d5f749f3973545a4d4b064998df.tar.gz | |
* debian/rules:
- Support the nocheck build option and ignore test failures on hurd
(Closes: #610448)
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index d020e901..6425c78c 100755 --- a/debian/rules +++ b/debian/rules @@ -37,10 +37,15 @@ override_dh_strip: override_dh_compress: dh_compress -X.js -X_static/* -X _sources/* -X_sources/*/* -X.inv +# We ignore failures on hurd, since its locking is broken override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) set -e; for python in $(shell pyversions -r); do \ - $$python tests/test_all.py -q; \ + $$python tests/test_all.py -q || [ "$(DEB_BUILD_ARCH_OS)" = "hurd" ]; \ done; +else + @echo "** tests disabled" +endif override_dh_python2: dh_python2 -N python-apt-common |
