test.sh (mairix-0.23) | : | test.sh (mairix-0.24) | ||
---|---|---|---|---|
skipping to change at line 940 | skipping to change at line 940 | |||
} | } | |||
#-------------------------------------------------------------------------- | #-------------------------------------------------------------------------- | |||
# updates the database by adding newly adjoining messages and marking no | # updates the database by adding newly adjoining messages and marking no | |||
# longer existing messages as deleted. | # longer existing messages as deleted. | |||
#-- | #-- | |||
# <no parameters> | # <no parameters> | |||
# | # | |||
update_database () { | update_database () { | |||
[[ $# -eq 0 ]] || error "update_database does not accept arguments, but rece ived $# arguments." | [[ $# -eq 0 ]] || error "update_database does not accept arguments, but rece ived $# arguments." | |||
run_mairix "$MARKER_NO_DUMP" | run_mairix "$MARKER_NO_DUMP" 2>"$DATA_DIR_ABS/update_database.stderr" | |||
if [ -s "$DATA_DIR_ABS/update_database.stderr" ]; then | ||||
echo "mairix unexpectedly emited error output:" | ||||
echo "<<<<<" | ||||
cat "$DATA_DIR_ABS/update_database.stderr" | ||||
echo ">>>>>" | ||||
false | ||||
fi | ||||
} | } | |||
#-------------------------------------------------------------------------- | #-------------------------------------------------------------------------- | |||
# creates a dump of the current state of the mairix database | # creates a dump of the current state of the mairix database | |||
# | # | |||
# Although being used internally, this function is mainly useful when | # Although being used internally, this function is mainly useful when | |||
# developing tests. | # developing tests. | |||
#-- | #-- | |||
# $1 - filename to store the dump into (either absolute, or relative to the | # $1 - filename to store the dump into (either absolute, or relative to the | |||
# base directory) | # base directory) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 8 lines changed or added |