1test_description="e2fsck with yes then no" 2FSCK_OPT=-f 3OUT=$test_name.log 4EXP=$test_dir/expect 5 6gunzip < $test_dir/../f_yesall/image.gz > $TMPFILE 7 8echo "yyyyyyyyyynnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" | E2FSCK_FORCE_INTERACTIVE=y $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1 9status=$? 10echo Exit status is $status >> $OUT.new 11sed -f $cmd_dir/filter.sed $OUT.new > $OUT 12rm -f $OUT.new 13 14cmp -s $OUT $EXP 15status=$? 16 17if [ "$status" = 0 ] ; then 18 echo "$test_name: $test_description: ok" 19 touch $test_name.ok 20else 21 echo "$test_name: $test_description: failed" 22 diff $DIFF_OPTS $EXP $OUT > $test_name.failed 23 rm -f tmp_expect 24fi 25 26unset IMAGE FSCK_OPT OUT EXP 27