From: Theodore Ts'o Date: Fri, 30 Jul 2021 17:10:28 +0000 (-0400) Subject: tests: skip m_rootdir_acl on GNU Hurd X-Git-Tag: v1.46.4~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5148709f6a4a0e2e0a8e6406d7f959a26bb5e3a0;p=thirdparty%2Fe2fsprogs.git tests: skip m_rootdir_acl on GNU Hurd The GNU Hurd doesn't support Posix ACL's, so even if the acl package is installed, the setfattr command will fail. So just skip the test on Hurd. Signed-off-by: Theodore Ts'o --- diff --git a/tests/m_rootdir_acl/script b/tests/m_rootdir_acl/script index 2a2a4c67f..e81c82ce8 100644 --- a/tests/m_rootdir_acl/script +++ b/tests/m_rootdir_acl/script @@ -9,6 +9,13 @@ if ! setfacl --help > /dev/null 2>&1 ; then return 0 fi +os=$(uname -s) +if [ "$os" = "GNU" ]; then + # requires Posix ACL support + echo "$test_name: $test_description: skipped for $os" + return 0 +fi + MKFS_DIR=$TMPFILE.dir OUT=$test_name.log EXP=$test_dir/expect