test: make testcase_owneridmap() compatible with coverage runs
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 18 Feb 2024 09:25:56 +0000 (10:25 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 18 Feb 2024 13:44:24 +0000 (13:44 +0000)
Follow-up for 614d09a.

test/units/testsuite-13.nspawn.sh

index 2e7a71f250bf17db96936ad8ea3cadf5b3c13c7a..69f21efd6058a54ce3e9dce691ae13dea3bd003c 100755 (executable)
@@ -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..."