coverage.sh: do not run cap_sys_admin test under lxc

This commit is contained in:
Johannes Schauer Marin Rodrigues 2021-02-06 14:46:00 +01:00
parent 73cd7cd2e8
commit 0009e62b3e
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -38,6 +38,7 @@ rm -f shared/cover_db.img
: "${HAVE_QEMU:=yes}" : "${HAVE_QEMU:=yes}"
: "${RUN_MA_SAME_TESTS:=yes}" : "${RUN_MA_SAME_TESTS:=yes}"
: "${ONLINE:=no}" : "${ONLINE:=no}"
: "${CONTAINER:=no}"
HOSTARCH=$(dpkg --print-architecture) HOSTARCH=$(dpkg --print-architecture)
@ -568,7 +569,11 @@ if [ "\$ret" = 0 ]; then
exit 1 exit 1
fi fi
END END
if [ "$HAVE_QEMU" = "yes" ]; then if [ "$CONTAINER" = "lxc" ]; then
# see https://stackoverflow.com/questions/65748254/
echo "cannot run under lxc -- Skipping test..." >&2
skipped=$((skipped+1))
elif [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh ./run_qemu.sh
runtests=$((runtests+1)) runtests=$((runtests+1))
else else