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