[PATCH] generic/688: Skip test if fs doesn't support security

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



This test require security attr. Skip test if fs doesn't support
security attr. E.g. virtiofs

Signed-off-by: Liu Yiding <liuyd.fnst@xxxxxxxxxxx>
---
 tests/generic/688 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/generic/688 b/tests/generic/688
index 426286b6..d11b4c21 100755
--- a/tests/generic/688
+++ b/tests/generic/688
@@ -7,6 +7,7 @@
 # Functional test for dropping capability bits as part of an fallocate.
 #
 . ./common/preamble
+. ./common/attr
 _begin_fstest auto prealloc quick
 
 # Override the default cleanup function.
@@ -28,6 +29,7 @@ _require_command "$GETCAP_PROG" getcap
 _require_command "$SETCAP_PROG" setcap
 _require_xfs_io_command falloc
 _require_test
+_require_attrs security
 _require_congruent_file_oplen $TEST_DIR 65536
 
 junk_dir=$TEST_DIR/$seq
-- 
2.34.1




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux