Fix tests that fail due to default graphics change

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.
This commit is contained in:
Martin Kletzander
2013-07-17 08:14:34 +02:00
parent b8a209ef9c
commit 9f37f58804
2 changed files with 4 additions and 1 deletions

View File

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

View File

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