From 83a1c4349075e4ac112bde2b227a1fa1e237aebc Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 3 Apr 2018 15:29:03 -0400 Subject: [PATCH] tests: test_urls: Look for manual.ini in ~/.config/virt-manager Rather than deal with ignoring it in the source tree --- .gitignore | 2 -- MANIFEST.in | 1 - tests/test_urls.py | 4 ++-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index db3db3469..dd2404e01 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,5 @@ po/virt-manager.pot /man/virt-convert.1 /man/virt-xml.1 -/tests/test_urls_manual.ini - /virt-manager.spec /virtcli/cli.cfg diff --git a/MANIFEST.in b/MANIFEST.in index 07b82a7c3..adb3e4b76 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -8,7 +8,6 @@ exclude data/gschemas.compiled recursive-include man * recursive-include po * recursive-include tests * -exclude tests/test_urls_manual.ini recursive-include ui * recursive-include virtManager * recursive-include virtcli * diff --git a/tests/test_urls.py b/tests/test_urls.py index 9251f44dd..ee30cb212 100644 --- a/tests/test_urls.py +++ b/tests/test_urls.py @@ -278,9 +278,9 @@ def _make_tests(): cfg = configparser.ConfigParser() cfg.read("tests/test_urls.ini") - manualpath = "tests/test_urls_manual.ini" + manualpath = "~/.config/virt-manager/test_urls_manual.ini" cfg.read(manualpath) - if not os.path.exists(manualpath): + if not os.path.exists(os.path.expanduser(manualpath)): print("NOTE: Pass in manual data with %s" % manualpath) urls = {}