coverage.sh: check that the expected number of tests get executed

This commit is contained in:
Johannes 'josch' Schauer 2019-10-28 14:50:56 +01:00
parent c403b2b238
commit c5a96736ef
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1720,6 +1720,11 @@ END
fi fi
done done
if [ "$((i-1))" -ne "$total" ]; then
echo unexpected number of tests: got $((i-1)) but expected $total
exit 1
fi
if [ "$HAVE_QEMU" = "yes" ]; then if [ "$HAVE_QEMU" = "yes" ]; then
guestfish add-ro shared/cover_db.img : run : mount /dev/sda / : tar-out / - \ guestfish add-ro shared/cover_db.img : run : mount /dev/sda / : tar-out / - \
| tar -C shared/cover_db --extract | tar -C shared/cover_db --extract