[virt-tools-list] [virt-manager PATCH] Fix tests that fail due to default graphics change
Martin Kletzander
mkletzan at redhat.com
Wed Jul 17 06:17:56 UTC 2013
As pointed out, the tests were configuration-dependent and thus might
have failed in case './setup.py configure' was run with non-default
graphics. The default graphics has changed as well and that lead to
test disaster. Reverting first hunk of commit b8a209ef and making the
tests independent of default graphics configuration makes all the
failures go away.
---
tests/__init__.py | 3 +++
virtcli/cliconfig.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/__init__.py b/tests/__init__.py
index 6a1351c..7cb43ca 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -22,6 +22,9 @@ os.environ["VIRTINST_TEST_TRACKPROPS"] = "1"
import virtinst
virtinst.enable_rhel_defaults = False
+from virtcli import cliconfig
+cliconfig.default_graphics = "vnc"
+
from tests import utils
# pylint: disable=W0212
diff --git a/virtcli/cliconfig.py b/virtcli/cliconfig.py
index ce43b3c..3edb964 100644
--- a/virtcli/cliconfig.py
+++ b/virtcli/cliconfig.py
@@ -84,4 +84,4 @@ preferred_distros = _split_list(_get_param("preferred_distros", ""))
hv_packages = _split_list(_get_param("hv_packages", ""))
askpass_package = _split_list(_get_param("askpass_packages", ""))
libvirt_packages = _split_list(_get_param("libvirt_packages", ""))
-default_graphics = _get_param("default_graphics", "spice")
+default_graphics = _get_param("default_graphics", "vnc")
--
1.8.3.2
More information about the virt-tools-list
mailing list