diff --git a/.gitignore b/.gitignore index dd2404e01..db3db3469 100644 --- a/.gitignore +++ b/.gitignore @@ -17,5 +17,7 @@ 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 adb3e4b76..07b82a7c3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -8,6 +8,7 @@ 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 a4c552736..87c0b27d8 100644 --- a/tests/test_urls.py +++ b/tests/test_urls.py @@ -15,11 +15,12 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA. -import unittest -import time import logging +import os import sys +import time import traceback +import unittest from tests import utils @@ -236,6 +237,11 @@ def _make_tests(): cfg = ConfigParser.ConfigParser() 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 = {} for name in cfg.sections(): vals = dict(cfg.items(name))