mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-02 09:47:16 +03:00
tests: Add explicit caps test for parsing numa topology
We get this implicitly via --cpuset=auto cli testing, but that's about to change in upcoming commits
This commit is contained in:
parent
e9d5347395
commit
8189674c8d
@ -78,6 +78,12 @@ class TestCapabilities(unittest.TestCase):
|
||||
test_utils(caps_with_kvm, True, True)
|
||||
test_utils(caps_no_kvm, True, False)
|
||||
|
||||
def testCapsNuma(self):
|
||||
cells = self._buildCaps("lxc.xml").host.topology.cells
|
||||
self.assertEquals(len(cells), 1)
|
||||
self.assertEquals(len(cells[0].cpus), 8)
|
||||
self.assertEquals(cells[0].cpus[3].id, '3')
|
||||
|
||||
|
||||
################################################
|
||||
# Test cpu_map.xml/getCPUModel output handling #
|
||||
|
Loading…
x
Reference in New Issue
Block a user