fix up exit status handling
-status=0 # success is the default!
+status=1 # failure is the default!
# get standard environment, filters and checks
. ./common.rc
# get standard environment, filters and checks
. ./common.rc
rm -f $tmp.*
if [ $status -eq 0 ]; then
# don't keep these files around unless something went wrong
rm -f $tmp.*
if [ $status -eq 0 ]; then
# don't keep these files around unless something went wrong
- rm $seq.trans* $seq.op* $seq.full
+ rm -f $seq.trans* $seq.op* $seq.full
fi
echo "*** unmount"
umount $SCRATCH_MNT 2>/dev/null
fi
echo "*** unmount"
umount $SCRATCH_MNT 2>/dev/null
echo "*** compare logprint: $1 with $2"
if ! diff $1 $2 >/dev/null; then
echo "FAILED: logprint output $1 differs to $2"
echo "*** compare logprint: $1 with $2"
if ! diff $1 $2 >/dev/null; then
echo "FAILED: logprint output $1 differs to $2"
if ! _process_op_diff $filtered.diff
then
echo "FAILED: logprint output $1 differs to $2 considering splits"
if ! _process_op_diff $filtered.diff
then
echo "FAILED: logprint output $1 differs to $2 considering splits"
# real QA test starts here
# prelim
# real QA test starts here
# prelim
-rm -f $seq.trans* $seq.op* $seq.full
_clear_opts
echo "*** init FS"
umount $SCRATCH_DEV >/dev/null 2>&1
_clear_opts
echo "*** init FS"
umount $SCRATCH_DEV >/dev/null 2>&1
_print_transaction_inode
_cmp_output $seq.ugquota.trans_inode $filtered
_print_transaction_inode
_cmp_output $seq.ugquota.trans_inode $filtered
+# got thru it all so we may have success
+if [ ! -e $tmp.error ]; then
+ status=0
+fi
+