#!/bin/sh
# The test suite gates its internet-dependent tests (queries to hardcoded
# public resolvers such as 8.8.8.8, DNS over HTTPS) on
# tests.util.is_internet_reachable(), whose probe only verifies that a
# small UDP DNS query gets an answer.  In restricted testbeds (sbuild
# chroots, lab networks with DNS interception and filtered egress) that
# probe succeeds while the real tests time out or get connection refused,
# producing spurious autopkgtest failures (e.g. the 4 testQueryUDPFallback
# variants and test_build_url_from_ip of the 2.3.0-1+deb12u1 build).
# Export NO_INTERNET=1 so the suite skips those tests, mirroring
# debian/rules which exports it for the build-time test run.
export NO_INTERNET=1
exec python3 -m pytest tests/
