coverage.sh: perform default mirror test with stable so that we can also check if the security mirror gets added

This commit is contained in:
Johannes 'josch' Schauer 2019-01-25 12:06:34 +01:00
parent 21270ef56d
commit e07b70c361
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -287,23 +287,28 @@ else
./run_null.sh
fi
print_header "mode=auto,variant=apt: default mirror"
print_header "mode=root,variant=apt: stable default mirror"
cat << END > shared/test.sh
#!/bin/sh
set -eu
export LC_ALL=C.UTF-8
echo "127.0.0.1 deb.debian.org" >> /etc/hosts
$CMD --mode=$defaultmode --variant=apt unstable /tmp/unstable-chroot.tar
tar -tf /tmp/unstable-chroot.tar | sort > tar2.txt
diff -u tar1.txt tar2.txt
rm /tmp/unstable-chroot.tar
cat << HOSTS >> /etc/hosts
127.0.0.1 deb.debian.org
127.0.0.1 security.debian.org
HOSTS
apt-cache policy
cat /etc/apt/sources.list
$CMD --mode=root --variant=apt stable /tmp/debian-unstable
cat << SOURCES | cmp /tmp/debian-unstable/etc/apt/sources.list
deb http://deb.debian.org/debian stable main
deb http://deb.debian.org/debian stable-updates main
deb http://security.debian.org/debian-security stable/updates main
SOURCES
END
if [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh
elif [ "$defaultmode" = "root" ]; then
./run_null.sh SUDO
else
./run_null.sh
./run_null.sh SUDO
fi
print_header "mode=auto,variant=apt: pass distribution but implicitly write to stdout"