[Libosinfo] [osinfo-db-tools PATCH] tests: Unset OSINFO_LOCAL_DIR envvar
Fabiano Fidêncio
fidencio at redhat.com
Tue Jul 9 08:00:26 UTC 2019
Commit 1df4c0dbede tried to unset all OSINFO_*_DIR envvars but instead
of unsetting OSINFO_LOCAL_DIR it unset OSINFO_DATA_DIR, which doesn't
exist.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
tests/test_osinfo_db_path.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_osinfo_db_path.py b/tests/test_osinfo_db_path.py
index b0b6aff..c862b7a 100755
--- a/tests/test_osinfo_db_path.py
+++ b/tests/test_osinfo_db_path.py
@@ -30,8 +30,8 @@ def test_osinfo_db_path_local():
"""
Test osinfo-db-path --local
"""
- if "OSINFO_DATA_DIR" in os.environ:
- del os.environ["OSINFO_DATA_DIR"]
+ if "OSINFO_LOCAL_DIR" in os.environ:
+ del os.environ["OSINFO_LOCAL_DIR"]
cmd = [util.Tools.db_path, util.ToolsArgs.LOCAL]
output = util.get_output(cmd)
expected_output = os.path.join(SYSCONFDIR, "osinfo\n")
--
2.21.0
More information about the Libosinfo
mailing list