mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
test: Set state_dir in Dovecot config
Dovecot's `state_dir` usually defaults to be at `/var/lib/dovecot`, or a similar system-wide path. Under some conditions, our test Dovecot instance can fail, because it's wanting to write to state_dir, but it is not writeable by us in the test environment. This was reported by foxcpp in https://github.com/albertito/chasquid/issues/28. This patch fixes the problem by setting a custom state_dir to be within our testing directory. Thanks to foxcpp for reporting this problem and suggesting a fix.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
base_dir = $ROOT/run/
|
||||
state_dir = $ROOT/lib/
|
||||
log_path = $ROOT/dovecot.log
|
||||
ssl = no
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ fi
|
||||
# limitation, so we use a directory in /tmp, which is not ideal, as a
|
||||
# workaround.
|
||||
export ROOT="/tmp/chasquid-dovecot-test"
|
||||
mkdir -p $ROOT $ROOT/run
|
||||
mkdir -p $ROOT $ROOT/run $ROOT/lib
|
||||
rm -f $ROOT/dovecot.log
|
||||
|
||||
export GROUP=$(id -g -n)
|
||||
|
||||
Reference in New Issue
Block a user