]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/012: check if ext4 is available
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 10 Jan 2023 15:52:16 +0000 (07:52 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 14 Jan 2023 13:43:24 +0000 (21:43 +0800)
btrfs/012 is requiring ext4 support to test the conversion, but the test
case is only checking if mkfs.ext4 is available, not if the filesystem
driver is actually available on the test host.

Check if the driver is available as well, before trying to run the test.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/012

index 60461a3425451d3bd12831886e423b70b2418fa1..d9faf81ce1ad8ec545911316cb7fb93bc175a5d1 100755 (executable)
@@ -31,6 +31,7 @@ _require_command "$E2FSCK_PROG" e2fsck
 # ext4 does not support zoned block device
 _require_non_zoned_device "${SCRATCH_DEV}"
 _require_loop
+_require_extra_fs ext4
 
 BLOCK_SIZE=`_get_block_size $TEST_DIR`