From 0009e62b3e73aeb96a244e4b730e8257f254f5ff Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sat, 6 Feb 2021 14:46:00 +0100 Subject: [PATCH] coverage.sh: do not run cap_sys_admin test under lxc --- coverage.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/coverage.sh b/coverage.sh index 442a087..17ecd45 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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