]> git.notmuchmail.org Git - notmuch/commit - test/test-lib.sh
test-lib: unset XDG_CONFIG_HOME
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sun, 18 Apr 2021 03:48:46 +0000 (10:48 +0700)
committerDavid Bremner <david@tethera.net>
Sun, 18 Apr 2021 13:00:10 +0000 (10:00 -0300)
commit828a004921ab0736634203cd07cc41393da00047
treefbf6fa62b72fbc310ca9368a0c38813fb086af52
parent9ad19e4454ff98342a6c0ec5a7e44c8c516e6fcd
test-lib: unset XDG_CONFIG_HOME

lib/open.cc:_load_key_file will only open xdg-config files in
$XDG_CONFIG_HOME if it's defined, $HOME/.config will be considered if
and only if XDG_CONFIG_HOME not defined.

Let's unset said variable before running the test.
test/test-lib.sh