X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=tests%2Fj_corrupt_sb_csum%2Fscript;h=57fc8fb56bbeb9f183e73ae4cdfb010a9036ff2f;hb=3819bff4cfceed456b2581228e66458cf800adf5;hp=9c169752d69b03e746d6581aa343d21e164b39e9;hpb=0647f84998bc7eebdde19ae38bb22156b2a0b34e;p=tools%2Fe2fsprogs.git diff --git a/tests/j_corrupt_sb_csum/script b/tests/j_corrupt_sb_csum/script index 9c16975..57fc8fb 100644 --- a/tests/j_corrupt_sb_csum/script +++ b/tests/j_corrupt_sb_csum/script @@ -1,4 +1,7 @@ -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 @@ -28,7 +31,7 @@ rm -f $OUT.new 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 @@ -46,7 +49,3 @@ else fi unset IMAGE FSCK_OPT OUT EXP - -else #if test -x $DEBUGFS_EXE; then - echo "$test_name: $test_description: skipped" -fi