test: make testcase_owneridmap() compatible with coverage runs

Follow-up for 614d09a.
This commit is contained in:
Frantisek Sumsal
2024-02-18 10:25:56 +01:00
committed by Luca Boccassi
parent 8d2a38ef6c
commit 78bbc7d5d4

View File

@@ -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..."