From: Baptiste Daroussin Date: Thu, 27 Oct 2022 09:53:29 +0000 (+0200) Subject: mlmmj-maintd: add a test in case the moderation directory is missing X-Git-Tag: RELEASE_1_4_0a1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beae5ff4bed4dfc17b1d7bf4e7cc3f5ab2eed8b8;p=thirdparty%2Fmlmmj.git mlmmj-maintd: add a test in case the moderation directory is missing --- diff --git a/tests/mlmmj-maintd.sh b/tests/mlmmj-maintd.sh index 2d73a006..7b2a19bf 100755 --- a/tests/mlmmj-maintd.sh +++ b/tests/mlmmj-maintd.sh @@ -220,6 +220,26 @@ run_digests " atf_check -o "inline:$output" sed -e "s/at .*/at/" lists/ml/mlmmj-maintd.lastrun.log mkdir -p lists/ml/unsubconf + + rm -rf lists/ml/moderation + atf_check -s exit:0 -e match:"An error occured while cleaning moderation, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F + output="Starting maintenance run at + +clean_moderation + - Could not open 'moderation': No such file or directory +clean_discarded +clean_subconf +clean_unsubconf +resend_queue +resend_requeue +clean_nolongerbouncing +unsub_bouncers +probe_bouncers +run_digests + - No readable index file: no digest +" + atf_check -o "inline:$output" sed -e "s/at .*/at/" lists/ml/mlmmj-maintd.lastrun.log + mkdir -p lists/ml/moderation } digests_body()