mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
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:
parent
e80ebe56f5
commit
83a1c43490
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
|
||||
|
@ -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 *
|
||||
|
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user