From 661b3ed3bef6c35094399264f0c1a736ac7ddf04 Mon Sep 17 00:00:00 2001 Message-Id: <661b3ed3bef6c35094399264f0c1a736ac7ddf04@dist-git> From: Pavel Hrdina Date: Thu, 14 Mar 2019 10:46:02 +0100 Subject: [PATCH] domain: cpu: introduce set_model function We will need to pass another variable into the setter so we cannot use the property setter. Signed-off-by: Pavel Hrdina Reviewed-by: Cole Robinson (cherry picked from commit 6423f653fd2d895d5addf37a6d504dbc9a4a0d6f) Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1582667 Signed-off-by: Pavel Hrdina Reviewed-by: Cole Robinson --- tests/xmlparse.py | 11 +++++++---- virtManager/domain.py | 2 +- virtinst/cli.py | 2 +- virtinst/cpu.py | 22 ++++++++++++---------- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/tests/xmlparse.py b/tests/xmlparse.py index e7d291f3..279b1dc1 100644 --- a/tests/xmlparse.py +++ b/tests/xmlparse.py @@ -169,7 +169,8 @@ class XMLParseTest(unittest.TestCase): check = self._make_checker(guest.cpu) check("match", "exact", "strict") - check("model", "footest", "qemu64") + guest.cpu.set_model("qemu64") + check("model", "qemu64") check("vendor", "Intel", "qemuvendor") check("threads", 2, 1) check("cores", 5, 3) @@ -262,7 +263,9 @@ class XMLParseTest(unittest.TestCase): guest.seclabels[0].get_xml_config().startswith("