From e07b70c361539e22f323f98da5f5fa43ffbefa0d Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 25 Jan 2019 12:06:34 +0100 Subject: [PATCH] coverage.sh: perform default mirror test with stable so that we can also check if the security mirror gets added --- coverage.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/coverage.sh b/coverage.sh index 80d63d0..91a36c0 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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"