coverage.sh: allow to disable running tests that can fail because of m-a:same version skews

This commit is contained in:
Johannes 'josch' Schauer 2019-10-05 07:23:25 +02:00
parent b40f1530a2
commit 3d8b072e3f
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -11,6 +11,7 @@ rm -f shared/cover_db.img
: "${DEFAULT_DIST:=unstable}" : "${DEFAULT_DIST:=unstable}"
: "${HAVE_QEMU:=yes}" : "${HAVE_QEMU:=yes}"
: "${RUN_MA_SAME_TESTS:=yes}"
if [ "$HAVE_QEMU" = "yes" ]; then if [ "$HAVE_QEMU" = "yes" ]; then
# prepare image for cover_db # prepare image for cover_db
@ -803,10 +804,14 @@ rmdir /tmp/debian-chroot/usr/lib/file/
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
END END
if [ "$HAVE_QEMU" = "yes" ]; then if [ "$RUN_MA_SAME_TESTS" = "yes" ]; then
./run_qemu.sh if [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh
else
./run_null.sh SUDO
fi
else else
./run_null.sh SUDO echo "RUN_MA_SAME_TESTS != yes -- Skipping test..."
fi fi
print_header "mode=root,variant=apt: test --aptopt" print_header "mode=root,variant=apt: test --aptopt"