mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
test: Absolute and relative directory paths.
This commit is contained in:
parent
95a9c73c72
commit
4cd5a0a3d5
1 changed files with 10 additions and 0 deletions
|
@ -99,4 +99,14 @@ test_expect_equal "$(notmuch --config=alt-config-link config get user.name)" \
|
||||||
test_begin_subtest "Writing config file through symlink follows symlink"
|
test_begin_subtest "Writing config file through symlink follows symlink"
|
||||||
test_expect_equal "$(readlink alt-config-link)" "alt-config"
|
test_expect_equal "$(readlink alt-config-link)" "alt-config"
|
||||||
|
|
||||||
|
test_begin_subtest "Absolute database path returned"
|
||||||
|
notmuch config set database.path ${HOME}/Maildir
|
||||||
|
test_expect_equal "$(notmuch config get database.path)" \
|
||||||
|
"${HOME}/Maildir"
|
||||||
|
|
||||||
|
test_begin_subtest "Relative database path properly expanded"
|
||||||
|
notmuch config set database.path Maildir
|
||||||
|
test_expect_equal "$(notmuch config get database.path)" \
|
||||||
|
"${HOME}/Maildir"
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue