tests: test_urls: Look for manual.ini in ~/.config/virt-manager

Rather than deal with ignoring it in the source tree
This commit is contained in:
Cole Robinson 2018-04-03 15:29:03 -04:00
parent e80ebe56f5
commit 83a1c43490
3 changed files with 2 additions and 5 deletions

2
.gitignore vendored
View File

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

View File

@ -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 *

View File

@ -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 = {}