X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT400-hooks.sh;h=3a2df2f4efabe5c7c097a2d6240ac75f80305c7c;hb=3787fe6c84ae223ba8c34920c3a2495c71abfe6c;hp=a2b67d59b5de42abdb162e71be8c02025cd23c53;hpb=7d286f0272feb08aea8c1bee0b0ec6cd9766aee7;p=notmuch diff --git a/test/T400-hooks.sh b/test/T400-hooks.sh index a2b67d59..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}]" @@ -159,7 +166,6 @@ EOF test_expect_equal_file write.expected write.output test_begin_subtest "pre-new with write access [${config}]" - test_subtest_known_broken rm -rf ${HOOK_DIR} create_write_hook "pre-new" write.expected write.output $HOOK_DIR NOTMUCH_NEW