summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/build-procenv4
-rw-r--r--debian/tests/control2
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/tests/build-procenv b/debian/tests/build-procenv
index 73f7e25..1074184 100644
--- a/debian/tests/build-procenv
+++ b/debian/tests/build-procenv
@@ -112,6 +112,10 @@ if [ -z "$http_proxy" ]; then
fi
echo "INFO: Creating sbuild chroot '$chroot' for release '$release' in directory '$dir' from url '$url'"
+
+# Test if there is actually a release for that architecture
+wget --quiet --spider "$url/dists/$release/main/binary-$arch/Release" || exit 77
+
[ -n "$components" ] && components="--components=$components"
# avoid "debconf: delaying package configuration, since apt-utils is not installed"
runuser -u "$AUTOPKGTEST_NORMAL_USER" -- sudo sbuild-createchroot $components "$release" "$dir" "$url"
diff --git a/debian/tests/control b/debian/tests/control
index a0f720a..5ba839b 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,5 @@
Tests: build-procenv
-Depends: apt (>= 1.1~exp2), apt-utils, debootstrap, distro-info, lsb-release, sudo, @
+Depends: apt (>= 1.1~exp2), apt-utils, debootstrap, distro-info, lsb-release, sudo, wget, @
Restrictions: needs-root skippable
Tests: unshare