projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2a38e
)
test: make testcase_owneridmap() compatible with coverage runs
author
Frantisek Sumsal
<frantisek@sumsal.cz>
Sun, 18 Feb 2024 09:25:56 +0000
(10:25 +0100)
committer
Luca 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
patch
|
blob
|
history
diff --git
a/test/units/testsuite-13.nspawn.sh
b/test/units/testsuite-13.nspawn.sh
index 2e7a71f250bf17db96936ad8ea3cadf5b3c13c7a..69f21efd6058a54ce3e9dce691ae13dea3bd003c 100755
(executable)
--- 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..."