[2/2] xfs/139-140: skip testing on large scratch dev
diff mbox series

Message ID 20190102040319.7668-2-zlang@redhat.com
State New
Headers show
Series
  • [1/2] generic/474: shift target directory to a sub-dir of SCRATCH_MNT
Related show

Commit Message

Zorro Lang Jan. 2, 2019, 4:03 a.m. UTC
x/139 and x/140 makes XFS with very small agsize. That agsize is too
small for a large fs. And it's not necessary to test on large fs, so
skip it directly if scratch dev is large dev.

Signed-off-by: Zorro Lang <zlang@redhat.com>
---
 tests/xfs/139 | 3 +++
 tests/xfs/140 | 3 +++
 2 files changed, 6 insertions(+)

Patch
diff mbox series

diff --git a/tests/xfs/139 b/tests/xfs/139
index 3a20ce50..4c498ff2 100755
--- a/tests/xfs/139
+++ b/tests/xfs/139
@@ -29,6 +29,9 @@  _cleanup()
 
 # real QA test starts here
 _supported_os Linux
+# Below agsize (16384 * $blksz) is too small for a large fs, and it's not
+# necessary to test on large fs
+_require_no_large_scratch_dev
 _require_scratch_reflink
 _require_cp_reflink
 
diff --git a/tests/xfs/140 b/tests/xfs/140
index 7385dc42..863b1e6f 100755
--- a/tests/xfs/140
+++ b/tests/xfs/140
@@ -29,6 +29,9 @@  _cleanup()
 
 # real QA test starts here
 _supported_os Linux
+# Below agsize is too small for a large fs, and it's not necessary to test on
+# large fs
+_require_no_large_scratch_dev
 _require_scratch_reflink
 _require_cp_reflink