[osinfo-db-tools PATCH] test_osinfo_db_path: Unset XDG_CONFIG_HOME envvar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Similarly to what's been done as part of 1df4c0dbede91, let's just unset
XDG_CONFIG_HOME environment variable in our tests, in case those were
externally set for some reason.

https://gitlab.com/libosinfo/osinfo-db-tools/issues/3

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 tests/test_osinfo_db_path.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_osinfo_db_path.py b/tests/test_osinfo_db_path.py
index d813c34..b0b6aff 100755
--- a/tests/test_osinfo_db_path.py
+++ b/tests/test_osinfo_db_path.py
@@ -44,6 +44,8 @@ def test_osinfo_db_path_user():
     """
     if "OSINFO_USER_DIR" in os.environ:
         del os.environ["OSINFO_USER_DIR"]
+    if "XDG_CONFIG_HOME" in os.environ:
+        del os.environ["XDG_CONFIG_HOME"]
     cmd = [util.Tools.db_path, util.ToolsArgs.USER]
     output = util.get_output(cmd)
     expected_output = os.path.join(os.environ["HOME"], ".config",
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux