[Git][debian-gis-team/rasterio][master] 3 commits: Skip tests requiring network.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Fri Jul 8 11:03:10 BST 2022



Bas Couwenberg pushed to branch master at Debian GIS Project / rasterio


Commits:
41cc9741 by Bas Couwenberg at 2022-07-08T11:41:45+02:00
Skip tests requiring network.

- - - - -
f8fbf4db by Bas Couwenberg at 2022-07-08T11:41:45+02:00
Ignore test failures on certain architectures.

- - - - -
87ceb5b1 by Bas Couwenberg at 2022-07-08T11:41:45+02:00
Set distribution to unstable.

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+rasterio (1.3.0-2) unstable; urgency=medium
+
+  * Team upload.
+  * Skip tests requiring network.
+  * Ignore test failures on certain architectures.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 08 Jul 2022 11:04:37 +0200
+
 rasterio (1.3.0-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/rules
=====================================
@@ -3,11 +3,38 @@
 # Enable hardening build flags
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-export PYBUILD_NAME=rasterio
-export PYBUILD_BEFORE_TEST= cp -r {dir}/tests {build_dir}
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
+export PYBUILD_NAME=rasterio
+export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}
 export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests
 export PYBUILD_TEST_PYTEST=1
+export PYBUILD_TEST_ARGS=--ignore tests/test_env.py \
+                         --ignore tests/test_io.py \
+                         --ignore tests/test_merge.py \
+                         --ignore tests/test_rio_blocks.py \
+                         --ignore tests/test_rio_bounds.py \
+                         --ignore tests/test_rio_calc.py \
+                         --ignore tests/test_rio_clip.py \
+                         --ignore tests/test_rio_convert.py \
+                         --ignore tests/test_rio_edit_info.py \
+                         --ignore tests/test_rio_gcp.py \
+                         --ignore tests/test_rio_helpers.py \
+                         --ignore tests/test_rio_info.py \
+                         --ignore tests/test_rio_insp.py \
+                         --ignore tests/test_rio_main.py \
+                         --ignore tests/test_rio_mask.py \
+                         --ignore tests/test_rio_merge.py \
+                         --ignore tests/test_rio_options.py \
+                         --ignore tests/test_rio_overview.py \
+                         --ignore tests/test_rio_rasterize.py \
+                         --ignore tests/test_rio_rm.py \
+                         --ignore tests/test_rio_sample.py \
+                         --ignore tests/test_rio_shapes.py \
+                         --ignore tests/test_rio_stack.py \
+                         --ignore tests/test_rio_warp.py \
+                         --ignore tests/test_session.py \
+                         --ignore tests/test_warpedvrt.py
 
 %:
 	dh $@ --with python3 --buildsystem pybuild
@@ -22,7 +49,12 @@ override_dh_clean:
 	$(RM) .coverage
 
 override_dh_auto_test:
+# Ignore test failures on problematic architectures only
+ifneq (,$(filter $(DEB_BUILD_ARCH),arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha hppa hurd-i386 i64 kfreebsd-amd64 kfreebsd-i386 m68k powerpc ppc64 riscv64 sh4 sparc64 x32))
 	dh_auto_test || echo "Ignoring test failures"
+else
+	dh_auto_test
+endif
 
 override_dh_install:
 	dh_install



View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/compare/1893573ab06884c713f3fed0575a7e447d11931e...87ceb5b18e4cba58c0f674b1df635402df4df7ef

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/compare/1893573ab06884c713f3fed0575a7e447d11931e...87ceb5b18e4cba58c0f674b1df635402df4df7ef
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220708/7c093639/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list