mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 02:04:13 +03:00
tests: test_urls: Simplify adding in local tests
I'll use this to scoop up local ISOs for comprehensive testing locally.
This commit is contained in:
parent
c7ed34de63
commit
c9ca8ab7ce
2
.gitignore
vendored
2
.gitignore
vendored
@ -17,5 +17,7 @@ po/virt-manager.pot
|
|||||||
/man/virt-convert.1
|
/man/virt-convert.1
|
||||||
/man/virt-xml.1
|
/man/virt-xml.1
|
||||||
|
|
||||||
|
/tests/test_urls_manual.ini
|
||||||
|
|
||||||
/virt-manager.spec
|
/virt-manager.spec
|
||||||
/virtcli/cli.cfg
|
/virtcli/cli.cfg
|
||||||
|
@ -8,6 +8,7 @@ exclude data/gschemas.compiled
|
|||||||
recursive-include man *
|
recursive-include man *
|
||||||
recursive-include po *
|
recursive-include po *
|
||||||
recursive-include tests *
|
recursive-include tests *
|
||||||
|
exclude tests/test_urls_manual.ini
|
||||||
recursive-include ui *
|
recursive-include ui *
|
||||||
recursive-include virtManager *
|
recursive-include virtManager *
|
||||||
recursive-include virtcli *
|
recursive-include virtcli *
|
||||||
|
@ -15,11 +15,12 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||||
# MA 02110-1301 USA.
|
# MA 02110-1301 USA.
|
||||||
|
|
||||||
import unittest
|
|
||||||
import time
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
|
import unittest
|
||||||
|
|
||||||
from tests import utils
|
from tests import utils
|
||||||
|
|
||||||
@ -236,6 +237,11 @@ def _make_tests():
|
|||||||
cfg = ConfigParser.ConfigParser()
|
cfg = ConfigParser.ConfigParser()
|
||||||
cfg.read("tests/test_urls.ini")
|
cfg.read("tests/test_urls.ini")
|
||||||
|
|
||||||
|
manualpath = "tests/test_urls_manual.ini"
|
||||||
|
cfg.read(manualpath)
|
||||||
|
if not os.path.exists(manualpath):
|
||||||
|
print("NOTE: Pass in manual data with %s" % manualpath)
|
||||||
|
|
||||||
urls = {}
|
urls = {}
|
||||||
for name in cfg.sections():
|
for name in cfg.sections():
|
||||||
vals = dict(cfg.items(name))
|
vals = dict(cfg.items(name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user