]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tests: skip m_rootdir_acl on GNU Hurd
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 Jul 2021 17:10:28 +0000 (13:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Jul 2021 17:10:28 +0000 (13:10 -0400)
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 <tytso@mit.edu>
tests/m_rootdir_acl/script

index 2a2a4c67f418736635cf1ef779b5412372ad9de1..e81c82ce8461ead9ae5f8e29a480b2cb55a7d1e0 100644 (file)
@@ -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