]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - tests/r_ext4_big_expand/script
tests: clean up $DEBUGFS_EXE usage in scripts
[thirdparty/e2fsprogs.git] / tests / r_ext4_big_expand / script
index 1b8c823ec631cf38d43478e9dfe3fc1cdb8b500c..266c9039cbfe72e0bc68f7e3d068d7c79ccdf1fb 100644 (file)
@@ -1,6 +1,9 @@
-if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
-
 test_description="very large fs growth using ext4"
+if ! test -x $RESIZE2FS_EXE -o ! -x $DEBUGFS_EXE; then
+       echo "$test_name: $test_description: skipped (no debugfs/resize2fs)"
+       return 0
+fi
+
 FEATURES="-t ext4"
 SIZE_1=512M
 SIZE_2=2T
@@ -29,8 +32,3 @@ else
 fi
 
 unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK
-
-else #if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
-       echo "$test_name: $test_description: skipped"
-fi 
-