From 8189674c8da01c23095767c42910f209d3aecbe6 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 18 Nov 2015 14:53:12 -0500 Subject: [PATCH] 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 --- tests/capabilities.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/capabilities.py b/tests/capabilities.py index b727e80ba..0c1a2b85b 100644 --- a/tests/capabilities.py +++ b/tests/capabilities.py @@ -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 #