]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - tests/d_dumpe2fs_group_only/script
tests: clean up $DEBUGFS_EXE usage in scripts
[thirdparty/e2fsprogs.git] / tests / d_dumpe2fs_group_only / script
index 50481f02705421a5554e2fa5d2a88dd95681c450..c3ab7e2bc8fc4df02c4918d5c17b36b43ea3fa73 100644 (file)
@@ -4,7 +4,10 @@ if [ $(uname -s) = "Darwin" ]; then
        return 0
 fi
 
-if test -x $DEBUGFS_EXE; then
+if ! test -x $DEBUGFS_EXE; then
+       echo "$test_name: $test_description: skipped (no debugfs)"
+       return 0
+fi
 
 FSCK_OPT=-fy
 OUT=$test_name.log
@@ -43,7 +46,3 @@ else
 fi
 
 unset IMAGE FSCK_OPT OUT EXP
-
-else #if test -x $DEBUGFS_EXE; then
-       echo "$test_name: $test_description: skipped"
-fi