ansible: fix affinity tests for 5ae45f6612390bbc888b65964fb5c218feed1679

pull/612/head
David Wilson 5 years ago
parent bf1f3682aa
commit a9d3fdf6b7

@ -64,32 +64,32 @@ class FixedPolicyTest(testlib.TestCase):
def test_assign_muxprocess_1core(self): def test_assign_muxprocess_1core(self):
# Uniprocessor . # Uniprocessor .
policy = self.klass(cpu_count=1) policy = self.klass(cpu_count=1)
policy.assign_muxprocess() policy.assign_muxprocess(0)
self.assertEquals(0x1, policy.mask) self.assertEquals(0x1, policy.mask)
def test_assign_muxprocess_2core(self): def test_assign_muxprocess_2core(self):
# Small SMP gets dedicated core. # Small SMP gets dedicated core.
policy = self.klass(cpu_count=2) policy = self.klass(cpu_count=2)
policy.assign_muxprocess() policy.assign_muxprocess(0)
self.assertEquals(0x1, policy.mask) self.assertEquals(0x1, policy.mask)
policy.assign_muxprocess() policy.assign_muxprocess(0)
self.assertEquals(0x1, policy.mask) self.assertEquals(0x1, policy.mask)
policy.assign_muxprocess() policy.assign_muxprocess(0)
def test_assign_muxprocess_3core(self): def test_assign_muxprocess_3core(self):
# Small SMP gets a dedicated core. # Small SMP gets a dedicated core.
policy = self.klass(cpu_count=3) policy = self.klass(cpu_count=3)
policy.assign_muxprocess() policy.assign_muxprocess(0)
self.assertEquals(0x1, policy.mask) self.assertEquals(0x1, policy.mask)
policy.assign_muxprocess() policy.assign_muxprocess(0)
self.assertEquals(0x1, policy.mask) self.assertEquals(0x1, policy.mask)
def test_assign_muxprocess_4core(self): def test_assign_muxprocess_4core(self):
# Big SMP gets a dedicated core. # Big SMP gets a dedicated core.
policy = self.klass(cpu_count=4) policy = self.klass(cpu_count=4)
policy.assign_muxprocess() policy.assign_muxprocess(0)
self.assertEquals(0x1, policy.mask) self.assertEquals(0x1, policy.mask)
policy.assign_muxprocess() policy.assign_muxprocess(0)
self.assertEquals(0x1, policy.mask) self.assertEquals(0x1, policy.mask)
def test_assign_worker_1core(self): def test_assign_worker_1core(self):

Loading…
Cancel
Save