On Mon, 3 Oct 2022 11:56:30 -0400
Ben Westover <
kwestover.kw@gmail.com> wrote:
Thanks, I didn't catch that since I use sbuild instead of pbuilder.
I have set the environment variable CI = true which should disable
those tests.
Unfortunately, it doesn't.
The change suggested below does make 'CI=true' take effect, but that
still leaves a few failing tests not marked by upstream. Probably
easiest to exclude those remaining troublemakers by instructing
pybuild to set a pytest option, e.g. PYBUILD_TEST_ARGS = -k 'not ...'.
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
#! /usr/bin/make -f
export PYBUILD_NAME = ssdpy
-export CI = "true" # Skip tests which require network
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
@@ -11,3 +10,7 @@ execute_after_dh_auto_build:
execute_after_dh_auto_clean:
rm -rf debian/html
+
+override_dh_auto_test:
+ # Skip tests which require network
+ CI=true dh_auto_test
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmM8LAoACgkQQoMEoXSN zHrt7A/+I0St9d3h6qntrQ/RUiAvoIlk9KIjfKjL8R9uP0gs8jByyRpWI5/u9f1J 8qufgjuRVGGoWgFbeLTcfA0Irz2nWrt5kJphIDBfCpkN8Fs6NjAg0fxZheH/BkA9 1MK2cqR2brz66LxZnD5Kht8k+r5n4bO77FXu6lHGorNI9gpRrDaytwl0Wu4AFB/X R6TyJo+g3rLHlsRCzmmgQlZab+6V07JYdxSlMQz9EgmoYi2dbjEWVdOxvGlDH3Gs PyU4jn9YONgCofprre9mZwUGKy9ZI7dRydU7EEIieNG3wC8IpSdnOylapdXehlTN JFcAw3FqL5R2cTk/E/FpTpPPmJ8F+7dvocg2N8HbmVtsc7+u0saat+Ia/IAXIRdm gx1/RwloWPrSmGsaoxN7Ox24Sn1qSkxhiJH6LA7RJgItT7MuKYp7BuoN4ltDmU3l
2wgjtLgDZdS