tests: update expect file for u_direct_io
[e2fsprogs.git] / tests / f_no / script
blobc046d76f115b487f2e225e8fc4de5a1c4efd11b9
1 test_description="e2fsck with repeated no"
2 FSCK_OPT=-f
3 OUT=$test_name.log
4 EXP=$test_dir/expect
6 gunzip < $test_dir/../f_yesall/image.gz > $TMPFILE
8 echo "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" | E2FSCK_FORCE_INTERACTIVE=y $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1
9 status=$?
10 echo Exit status is $status >> $OUT.new
11 sed -f $cmd_dir/filter.sed $OUT.new > $OUT
12 rm -f $OUT.new
14 cmp -s $OUT $EXP
15 status=$?
17 if [ "$status" = 0 ] ; then
18         echo "$test_name: $test_description: ok"
19         touch $test_name.ok
20 else
21         echo "$test_name: $test_description: failed"
22         diff $DIFF_OPTS $EXP $OUT > $test_name.failed
23         rm -f tmp_expect
26 unset IMAGE FSCK_OPT OUT EXP