From d2ccb0bf2b2078e13fc4cb1c2e2eb8079fa57df0 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 24 Nov 2022 15:19:59 +0100 Subject: [PATCH] test: accept EPERM for unavailable idmapped mounts as well Follow-up for 3c54c67a7fc65dc5b49b2452739c19b94eeb98a9. rhel-only Related: #2138081 --- test/units/testsuite-13.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/testsuite-13.sh b/test/units/testsuite-13.sh index 4ad7431e42..2b6e6df8a3 100755 --- a/test/units/testsuite-13.sh +++ b/test/units/testsuite-13.sh @@ -74,7 +74,7 @@ function check_rootidmap { --register=no -D "$_root" \ --bind=/tmp/rootidmapdir:/mnt:rootidmap \ /bin/sh -c "$_command" |& tee nspawn.out; then - if grep -q "Failed to map ids for bind mount.*: Function not implemented" nspawn.out; then + if grep -Eq "Failed to map ids for bind mount.*: (Function not implemented|Operation not permitted)" nspawn.out; then echo "idmapped mounts are not supported, skipping the test..." return 0 fi