mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: kill _supported_os
fstests only supports Linux, so get rid of this unnecessary predicate. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
9a6005c31f
commit
a860a167d8
@@ -1456,24 +1456,6 @@ _supported_fs()
|
||||
_notrun "not suitable for this filesystem type: $FSTYP"
|
||||
}
|
||||
|
||||
|
||||
# tests whether $FSTYP is one of the supported OSes for a test
|
||||
#
|
||||
_supported_os()
|
||||
{
|
||||
local h
|
||||
|
||||
for h
|
||||
do
|
||||
if [ "$h" = "$HOSTOS" ]
|
||||
then
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
_notrun "not suitable for this OS: $HOSTOS"
|
||||
}
|
||||
|
||||
# check if a FS on a device is mounted
|
||||
# if so, verify that it is mounted on mount point
|
||||
# if fstype is given as argument, verify that it is also
|
||||
|
||||
@@ -179,7 +179,6 @@ rm -f \$seqres.full
|
||||
|
||||
# Modify as appropriate.
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
_require_test
|
||||
|
||||
# if error
|
||||
|
||||
@@ -28,7 +28,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
_scratch_mkfs > /dev/null 2>&1
|
||||
|
||||
@@ -26,7 +26,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
. ./common/filter
|
||||
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
_scratch_mkfs > /dev/null 2>&1 || _fail "mkfs failed"
|
||||
|
||||
@@ -47,7 +47,6 @@ _cleanup()
|
||||
. ./common/filter
|
||||
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_require_scratch_dev_pool 4
|
||||
_require_command "$WIPEFS_PROG" wipefs
|
||||
|
||||
@@ -32,7 +32,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_require_no_large_scratch_dev
|
||||
_require_btrfs_command inspect-internal logical-resolve
|
||||
|
||||
@@ -118,7 +118,6 @@ _rundefrag()
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
@@ -30,7 +30,6 @@ _cleanup()
|
||||
|
||||
# Modify as appropriate.
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_require_scratch_dev_pool
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_require_fssum
|
||||
_require_seek_data_hole
|
||||
|
||||
@@ -33,7 +33,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_test
|
||||
_require_scratch
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
@@ -31,7 +31,6 @@ _cleanup()
|
||||
rm -f $seqres.full
|
||||
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_test
|
||||
_require_btrfs_fs_sysfs
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ _cleanup()
|
||||
|
||||
# Modify as appropriate.
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch_nocheck
|
||||
|
||||
_require_command "$BTRFS_CONVERT_PROG" btrfs-convert
|
||||
|
||||
@@ -32,7 +32,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
@@ -37,7 +37,6 @@ _balance()
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
|
||||
_require_scratch
|
||||
_scratch_mkfs >/dev/null 2>&1
|
||||
|
||||
@@ -29,7 +29,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
@@ -32,7 +32,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_test
|
||||
_require_scratch
|
||||
_require_fssum
|
||||
|
||||
@@ -34,7 +34,6 @@ _cleanup()
|
||||
# real QA test starts here
|
||||
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_require_cloner
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
@@ -33,7 +33,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs btrfs
|
||||
_supported_os Linux
|
||||
_require_test
|
||||
_require_scratch
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user