unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test-lib: unset XDG_CONFIG_HOME
@ 2021-04-18  3:48 Đoàn Trần Công Danh
  2021-04-18 13:01 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Đoàn Trần Công Danh @ 2021-04-18  3:48 UTC (permalink / raw)
  To: notmuch; +Cc: Đoàn Trần Công Danh

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

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 098d69da..3f8d5827 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -104,6 +104,9 @@ unset CDPATH
 
 unset GREP_OPTIONS
 
+# For lib/open.cc:_load_key_file
+unset XDG_CONFIG_HOME
+
 # For emacsclient
 unset ALTERNATE_EDITOR
 
-- 
2.31.1.192.g0881477623

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test-lib: unset XDG_CONFIG_HOME
  2021-04-18  3:48 [PATCH] test-lib: unset XDG_CONFIG_HOME Đoàn Trần Công Danh
@ 2021-04-18 13:01 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2021-04-18 13:01 UTC (permalink / raw)
  To: Đoàn Trần Công Danh, notmuch
  Cc: Đoàn Trần Công Danh

Đoàn Trần Công Danh <congdanhqx@gmail.com> writes:

> 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.

applied to master.

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-18 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-18  3:48 [PATCH] test-lib: unset XDG_CONFIG_HOME Đoàn Trần Công Danh
2021-04-18 13:01 ` 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).