xfs: skip tests that rely on allocation behaviors of the data device
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 15 Sep 2020 01:43:21 +0000 (18:43 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Sep 2020 16:41:16 +0000 (00:41 +0800)
A large number of xfs-specific tests rely on specific behaviors of the
data device allocator, such as fragmenting free space, carefully curated
inode and free space counts, or features like filestreams that only
exist on the data device.

These tests fail horribly if the test runner specified rtinherit=1 on
the mkfs command line, so skip them all.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/171
tests/xfs/172
tests/xfs/173
tests/xfs/174
tests/xfs/205
tests/xfs/306
tests/xfs/318
tests/xfs/444

index 050d02ab9e1dfbe7e4ff4972418c1229aed2a550..a0d6e3f9cf84f0c29853266d523077aeba643943 100755 (executable)
@@ -33,6 +33,7 @@ _supported_fs xfs
 _supported_os Linux
 
 _require_scratch
+_require_no_rtinherit
 
 _check_filestreams_support || _notrun "filestreams not available"
 
index c100481cdd32f71cd2f9aaa0874eab30b73220a3..13f1f381f410a93a7fe8b3764cfa3f33dbfcf97b 100755 (executable)
@@ -33,6 +33,7 @@ _supported_fs xfs
 _supported_os Linux
 
 _require_scratch
+_require_no_rtinherit
 
 _check_filestreams_support || _notrun "filestreams not available"
 
index 1569146fb30b1d31c7dedbf6eb445b3cca32d8b7..47e1d029e1db23a7f0b70148f15ba1a5c1aad94f 100755 (executable)
@@ -33,6 +33,7 @@ _supported_fs xfs
 _supported_os Linux
 
 _require_scratch
+_require_no_rtinherit
 
 _check_filestreams_support || _notrun "filestreams not available"
 
index 781a1967acd83181ea9c219a2378661b3516abde..348f38c31296cc13f2039621ed79fea4d8505604 100755 (executable)
@@ -33,6 +33,7 @@ _supported_fs xfs
 _supported_os Linux
 
 _require_scratch
+_require_no_rtinherit
 
 _check_filestreams_support || _notrun "filestreams not available"
 
index 645e509a7898efa105fd31f11a56acdcd65ba606..6f1c2058a3ff8ac37e06a99cc9673d369ba2b432 100755 (executable)
@@ -24,6 +24,7 @@ _supported_os Linux
 
 # single AG will cause xfs_repair to fail checks.
 _require_scratch_nocheck
+_require_no_rtinherit
 
 rm -f $seqres.full
 
index edbb6076e8917e1eecfd10894028ffd7b45d49b7..d2a0dd7f7e7fd8bbcd014c38f29898e2d394b70b 100755 (executable)
@@ -35,6 +35,7 @@ _supported_fs xfs
 _supported_os Linux
 
 _require_scratch_nocheck       # check complains about single AG fs
+_require_no_rtinherit
 _require_xfs_io_command "fpunch"
 _require_command $UUIDGEN_PROG uuidgen
 
index 83b858ea1acb6ec1ee267a46b4c396866e6ca081..a45301e25f70a6e6c62757d773ea34f9869fbfac 100755 (executable)
@@ -33,6 +33,7 @@ _supported_fs xfs
 _require_scratch
 _require_error_injection
 _require_xfs_io_error_injection "rmap_finish_one"
+_require_no_rtinherit
 
 rm -f $seqres.full
 
index 6ed88715c5562993df0443414802a35f332692c2..e84b2ccadf4c8f0014cc79b814e6303a2a27be8d 100755 (executable)
@@ -40,6 +40,7 @@ _require_scratch
 _require_test_program "punch-alternating"
 _require_xfs_io_command "falloc"
 _require_xfs_db_write_array
+_require_no_rtinherit
 
 # This is only a v5 filesystem problem
 _require_scratch_xfs_crc