diff options
| author | David Bremner <david@tethera.net> | 2021-02-17 07:16:54 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-03-20 07:50:13 -0300 |
| commit | e3a4abc513d314cf7550d43fdcba458421a2daac (patch) | |
| tree | fc6f53a53e19616622eb5b709f9ab9bbfc8870ca /test/T400-hooks.sh | |
| parent | b30a59157d5ba0421c01fa3dc05d238d18738839 (diff) | |
lib/open: fix hook directory calculation in split configuration
Choose sibling directory of xapian database, as .notmuch may not
exist.
libgen.h is already used in debugger.c, so it is not a new dependency
/ potential portability problem.
Diffstat (limited to 'test/T400-hooks.sh')
| -rwxr-xr-x | test/T400-hooks.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/T400-hooks.sh b/test/T400-hooks.sh index de8e4ba4..3a2df2f4 100755 --- a/test/T400-hooks.sh +++ b/test/T400-hooks.sh @@ -43,9 +43,10 @@ add_message # create maildir structure for notmuch-insert mkdir -p "$MAIL_DIR"/{cur,new,tmp} -for config in traditional profile explicit XDG; do +for config in traditional profile explicit XDG split; do unset NOTMUCH_PROFILE notmuch config set database.hook_dir + notmuch config set database.path ${MAIL_DIR} case $config in traditional) HOOK_DIR=${MAIL_DIR}/.notmuch/hooks @@ -65,6 +66,12 @@ for config in traditional profile explicit XDG; do XDG) HOOK_DIR=${HOME}/.config/notmuch/default/hooks ;; + split) + dir="$TMP_DIRECTORY/database.$test_count" + notmuch config set database.path $dir + notmuch config set database.mail_root $MAIL_DIR + HOOK_DIR=${dir}/hooks + ;; esac test_begin_subtest "pre-new is run [${config}]" |
