[PATCH] test-lib: unset XDG_CONFIG_HOME

classic Classic list List threaded Threaded
2 messages Options
Đoàn Trần Công Danh Đoàn Trần Công Danh
Reply | Threaded
Open this post in threaded view
|

[PATCH] 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 | 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
_______________________________________________
notmuch mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] test-lib: unset XDG_CONFIG_HOME

Đoàn Trần Công Danh <[hidden email]> 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
_______________________________________________
notmuch mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]