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:
parent
21270ef56d
commit
e07b70c361
1 changed files with 14 additions and 9 deletions
23
coverage.sh
23
coverage.sh
|
@ -287,23 +287,28 @@ else
|
||||||
./run_null.sh
|
./run_null.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_header "mode=auto,variant=apt: default mirror"
|
print_header "mode=root,variant=apt: stable default mirror"
|
||||||
cat << END > shared/test.sh
|
cat << END > shared/test.sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
echo "127.0.0.1 deb.debian.org" >> /etc/hosts
|
cat << HOSTS >> /etc/hosts
|
||||||
$CMD --mode=$defaultmode --variant=apt unstable /tmp/unstable-chroot.tar
|
127.0.0.1 deb.debian.org
|
||||||
tar -tf /tmp/unstable-chroot.tar | sort > tar2.txt
|
127.0.0.1 security.debian.org
|
||||||
diff -u tar1.txt tar2.txt
|
HOSTS
|
||||||
rm /tmp/unstable-chroot.tar
|
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
|
END
|
||||||
if [ "$HAVE_QEMU" = "yes" ]; then
|
if [ "$HAVE_QEMU" = "yes" ]; then
|
||||||
./run_qemu.sh
|
./run_qemu.sh
|
||||||
elif [ "$defaultmode" = "root" ]; then
|
|
||||||
./run_null.sh SUDO
|
|
||||||
else
|
else
|
||||||
./run_null.sh
|
./run_null.sh SUDO
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_header "mode=auto,variant=apt: pass distribution but implicitly write to stdout"
|
print_header "mode=auto,variant=apt: pass distribution but implicitly write to stdout"
|
||||||
|
|
Loading…
Reference in a new issue