-if test -x $DEBUGFS_EXE; then
+if ! test -x $DEBUGFS_EXE; then
+ echo "$test_name: $test_description: skipped (no debugfs)"
+ return 0
+fi
IMAGE=$test_dir/image.gz
FSCK_OPT=-fy
echo "cat /a" > $TMPFILE.cmd
echo >> $TMPFILE.cmd
-$DEBUGFS_EXE -f $TMPFILE.cmd $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
+$DEBUGFS -f $TMPFILE.cmd $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
rm -f $TMPFILE.cmd
rm -f $TMPFILE
fi
unset IMAGE FSCK_OPT OUT EXP
-
-else #if test -x $DEBUGFS_EXE; then
- echo "$test_name: $test_description: skipped"
-fi