coverage.sh: check the full log to also prevent debug printfs to accidentally make it into a commit

This commit is contained in:
Johannes 'josch' Schauer 2020-01-10 12:03:49 +01:00
parent 2cb6438454
commit 40c9f76d91
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1710,11 +1710,16 @@ cat << END > shared/test.sh
set -eu set -eu
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
$CMD --mode=root --variant=apt --logfile=log $DEFAULT_DIST /tmp/debian-chroot $mirror $CMD --mode=root --variant=apt --logfile=log $DEFAULT_DIST /tmp/debian-chroot $mirror
grep --quiet "I: running apt-get update..." log # we check the full log to also prevent debug printfs to accidentally make it into a commit
grep --quiet "I: downloading packages with apt..." log cat << LOG | diff - log
grep --quiet "I: extracting archives..." log I: chroot architecture amd64 is equal to the host's architecture
grep --quiet "I: installing packages..." log I: gpg --version failed: cannot determine the right signed-by value
grep --quiet "I: cleaning package lists and apt cache..." log I: running apt-get update...
I: downloading packages with apt...
I: extracting archives...
I: installing packages...
I: cleaning package lists and apt cache...
LOG
tar -C /tmp/debian-chroot --one-file-system -c . | tar -t | sort | diff -u tar1.txt - tar -C /tmp/debian-chroot --one-file-system -c . | tar -t | sort | diff -u tar1.txt -
rm -r /tmp/debian-chroot rm -r /tmp/debian-chroot
rm log rm log