Skip to contentSkip to conversation

generic: Ignore getcap and setcap cases when it is NFS

PATCH New Cui, Yue/崔 悦 1 participant 1 message Sep 5, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic: Ignore getcap and setcap cases when it is NFS

---
 tests/generic/513 | 2 ++
 tests/generic/675 | 2 ++
 tests/generic/688 | 2 ++
 3 files changed, 6 insertions(+)
tests/generic/513 +1 -0
index dc08278..d7201f5 100755
@@ -19,6 +19,8 @@ _require_scratch_reflink
 _require_command "$GETCAP_PROG" getcap
 _require_command "$SETCAP_PROG" setcap
 +test $FSTYP == "nfs"  && _notrun "NFS can't support getcap and setcap"
+
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount
 diff --git a/tests/generic/675 b/tests/generic/675

index 189251f..0e9fd36 100755

tests/generic/675 +1 -0
@@ -22,6 +22,8 @@ _require_command "$GETCAP_PROG" getcap
 _require_command "$SETCAP_PROG" setcap
 _require_scratch_reflink
 +test $FSTYP == "nfs"  && _notrun "NFS can't support getcap and setcap"
+
 _scratch_mkfs >> $seqres.full
 _scratch_mount
 _require_congruent_file_oplen $SCRATCH_MNT 1048576
tests/generic/688 +1 -0
index 426286b..54b9e3c 100755
@@ -30,6 +30,8 @@ _require_xfs_io_command falloc
 _require_test
 _require_congruent_file_oplen $TEST_DIR 65536
 +test $FSTYP == "nfs"  && _notrun "NFS can't support getcap and setcap"
+
 junk_dir=$TEST_DIR/$seq
 junk_file=$junk_dir/a
 mkdir -p $junk_dir/
Signature · 1 line
1.8.3.1