From 3d8b072e3f83ead988ac3eefc52734057657e207 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 5 Oct 2019 07:23:25 +0200 Subject: [PATCH] coverage.sh: allow to disable running tests that can fail because of m-a:same version skews --- coverage.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/coverage.sh b/coverage.sh index 9adb95f..d12e987 100755 --- a/coverage.sh +++ b/coverage.sh @@ -11,6 +11,7 @@ rm -f shared/cover_db.img : "${DEFAULT_DIST:=unstable}" : "${HAVE_QEMU:=yes}" +: "${RUN_MA_SAME_TESTS:=yes}" if [ "$HAVE_QEMU" = "yes" ]; then # 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 - rm -r /tmp/debian-chroot END -if [ "$HAVE_QEMU" = "yes" ]; then - ./run_qemu.sh +if [ "$RUN_MA_SAME_TESTS" = "yes" ]; then + if [ "$HAVE_QEMU" = "yes" ]; then + ./run_qemu.sh + else + ./run_null.sh SUDO + fi else - ./run_null.sh SUDO + echo "RUN_MA_SAME_TESTS != yes -- Skipping test..." fi print_header "mode=root,variant=apt: test --aptopt"