aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/learn_bad.sh
blob: 199e77b7fa6dba2c04b8db2751bd081dc7970ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Test rspamd learn with bad stats

. ${TEST_DIRNAME}/functions.sh

export RSPAMD_CONFIG="$TEST_DIRNAME/configs/stats.conf" \
	STATSDIR=/non/existent

run_rspamd
run_rspamc learn_spam \
	 --key y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty \
	"$BATS_TEST_DIRNAME/messages/spam_message.eml"
check_output $output 'cannot open backend'