From: Frantisek Sumsal Date: Sun, 18 Feb 2024 09:25:56 +0000 (+0100) Subject: test: make testcase_owneridmap() compatible with coverage runs X-Git-Tag: v256-rc1~823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78bbc7d5d40506bc0b8e90c35ab89b02a904d13a;p=thirdparty%2Fsystemd.git test: make testcase_owneridmap() compatible with coverage runs Follow-up for 614d09a. --- diff --git a/test/units/testsuite-13.nspawn.sh b/test/units/testsuite-13.nspawn.sh index 2e7a71f250b..69f21efd605 100755 --- a/test/units/testsuite-13.nspawn.sh +++ b/test/units/testsuite-13.nspawn.sh @@ -675,6 +675,7 @@ EOF -U \ --user=testuser \ --bind=/tmp/owneridmap/bind:/home/testuser:owneridmap \ + ${COVERAGE_BUILD_DIR:+--bind="$COVERAGE_BUILD_DIR"} \ /usr/bin/bash -c "$cmd" |& tee nspawn.out; then if grep -q "Failed to map ids for bind mount.*: Function not implemented" nspawn.out; then echo "idmapped mounts are not supported, skipping the test..."