coverage.sh: do not run cap_sys_admin test under lxc

main
parent 73cd7cd2e8
commit 0009e62b3e
Signed by untrusted user: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -38,6 +38,7 @@ rm -f shared/cover_db.img
: "${HAVE_QEMU:=yes}"
: "${RUN_MA_SAME_TESTS:=yes}"
: "${ONLINE:=no}"
: "${CONTAINER:=no}"
HOSTARCH=$(dpkg --print-architecture)
@ -568,7 +569,11 @@ if [ "\$ret" = 0 ]; then
exit 1
fi
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
runtests=$((runtests+1))
else

Loading…
Cancel
Save