]> git.cworth.org Git - notmuch/commitdiff
test: unset XDG_DATA_HOME and MAILDIR for tests.
authorDavid Bremner <david@tethera.net>
Fri, 25 Mar 2022 17:51:02 +0000 (11:51 -0600)
committerDavid Bremner <david@tethera.net>
Fri, 25 Mar 2022 19:08:59 +0000 (13:08 -0600)
The some of the tests (and the library functions they exercise) that
rely on XDG_CONFIG_HOME also check XDG_DATA_HOME and MAILDIR.

test/test-vars.sh

index 812bcf81e837ff5967a1ec46233126cb336231d0..02d60f89a0ddb0200e37df95e661d22c03b0cebb 100644 (file)
@@ -44,6 +44,10 @@ unset GREP_OPTIONS
 # For lib/open.cc:_load_key_file
 unset XDG_CONFIG_HOME
 
+# for lib/open.cc:_choose_database_path
+unset XDG_DATA_HOME
+unset MAILDIR
+
 # For emacsclient
 unset ALTERNATE_EDITOR