mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-25 06:03:55 +03:00
guest: Check coverage for more of domcaps caching
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
92ba8e5d35
commit
aeffa4f711
@ -627,7 +627,7 @@ class Guest(XMLBuilder):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# We need to regenerate domcaps cache if any of these values change
|
# We need to regenerate domcaps cache if any of these values change
|
||||||
def _compare(domcaps): # pragma: no cover
|
def _compare(domcaps):
|
||||||
if self.type == "test":
|
if self.type == "test":
|
||||||
# Test driver doesn't support domcaps. We kinda fake it in
|
# Test driver doesn't support domcaps. We kinda fake it in
|
||||||
# some cases, but it screws up the checking here for parsed XML
|
# some cases, but it screws up the checking here for parsed XML
|
||||||
@ -637,7 +637,7 @@ class Guest(XMLBuilder):
|
|||||||
if self.type and self.type != domcaps.domain:
|
if self.type and self.type != domcaps.domain:
|
||||||
return False
|
return False
|
||||||
if self.os.arch and self.os.arch != domcaps.arch:
|
if self.os.arch and self.os.arch != domcaps.arch:
|
||||||
return False
|
return False # pragma: no cover
|
||||||
if self.emulator and self.emulator != domcaps.path:
|
if self.emulator and self.emulator != domcaps.path:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user