unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: unset XDG_DATA_HOME and MAILDIR for tests.
@ 2022-03-25 19:11 David Bremner
  0 siblings, 0 replies; only message in thread
From: David Bremner @ 2022-03-25 19:11 UTC (permalink / raw)
  To: notmuch

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 | 4 ++++
 1 file changed, 4 insertions(+)

this obsoletes the version that only unset XDG_DATA_HOME

diff --git a/test/test-vars.sh b/test/test-vars.sh
index 812bcf81..02d60f89 100644
--- a/test/test-vars.sh
+++ b/test/test-vars.sh
@@ -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
 
-- 
2.35.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-25 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 19:11 [PATCH] test: unset XDG_DATA_HOME and MAILDIR for tests David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).