From 0a7a16123a678ae9d3954fdc87db6f7f520bd71e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 30 Jun 2022 10:46:36 -0400 Subject: [PATCH] ext4/035: skip this test if the scratch device does not support 1k block sizes Signed-off-by: Theodore Ts'o Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- tests/ext4/035 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ext4/035 b/tests/ext4/035 index cad3595b7..1f26e7666 100755 --- a/tests/ext4/035 +++ b/tests/ext4/035 @@ -26,6 +26,9 @@ _exclude_scratch_mount_option dax _require_command "$RESIZE2FS_PROG" resize2fs $MKFS_EXT4_PROG -F -b 1024 -E "resize=262144" $SCRATCH_DEV 32768 >> $seqres.full 2>&1 +if [ $? -ne 0 ]; then + _notrun "Can't make file system with a block size of 1024" +fi _scratch_mount echo "Resizing to 262145 blocks" -- 2.49.0