diff options
| author | David Bremner <david@tethera.net> | 2021-05-07 07:38:32 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-05-10 11:13:07 -0300 |
| commit | 891b95021908e023113533a51ce53f85c8d4ffb4 (patch) | |
| tree | 264b5835b607eb1cd801331ddb0584ffce58ac8e | |
| parent | 1040e7aa077197e5295180ef54576ea39c298a36 (diff) | |
test: test relative paths for database.hook_dir
| -rwxr-xr-x | test/T400-hooks.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/T400-hooks.sh b/test/T400-hooks.sh index 3a2df2f4..00c99337 100755 --- a/test/T400-hooks.sh +++ b/test/T400-hooks.sh @@ -43,7 +43,7 @@ add_message # create maildir structure for notmuch-insert mkdir -p "$MAIL_DIR"/{cur,new,tmp} -for config in traditional profile explicit XDG split; do +for config in traditional profile explicit relative XDG split; do unset NOTMUCH_PROFILE notmuch config set database.hook_dir notmuch config set database.path ${MAIL_DIR} @@ -63,6 +63,11 @@ for config in traditional profile explicit XDG split; do mkdir -p $HOOK_DIR notmuch config set database.hook_dir $HOOK_DIR ;; + relative) + HOOK_DIR=${HOME}/.notmuch-hooks + mkdir -p $HOOK_DIR + notmuch config set database.hook_dir .notmuch-hooks + ;; XDG) HOOK_DIR=${HOME}/.config/notmuch/default/hooks ;; |
