From a9d3fdf6b70d1a723e9572784ce87b71f0444c19 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 30 Jul 2019 04:01:08 +0100 Subject: [PATCH] ansible: fix affinity tests for 5ae45f6612390bbc888b65964fb5c218feed1679 --- tests/ansible/tests/affinity_test.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/ansible/tests/affinity_test.py b/tests/ansible/tests/affinity_test.py index ccd72243..d9618bda 100644 --- a/tests/ansible/tests/affinity_test.py +++ b/tests/ansible/tests/affinity_test.py @@ -64,32 +64,32 @@ class FixedPolicyTest(testlib.TestCase): def test_assign_muxprocess_1core(self): # Uniprocessor . policy = self.klass(cpu_count=1) - policy.assign_muxprocess() + policy.assign_muxprocess(0) self.assertEquals(0x1, policy.mask) def test_assign_muxprocess_2core(self): # Small SMP gets dedicated core. policy = self.klass(cpu_count=2) - policy.assign_muxprocess() + policy.assign_muxprocess(0) self.assertEquals(0x1, policy.mask) - policy.assign_muxprocess() + policy.assign_muxprocess(0) self.assertEquals(0x1, policy.mask) - policy.assign_muxprocess() + policy.assign_muxprocess(0) def test_assign_muxprocess_3core(self): # Small SMP gets a dedicated core. policy = self.klass(cpu_count=3) - policy.assign_muxprocess() + policy.assign_muxprocess(0) self.assertEquals(0x1, policy.mask) - policy.assign_muxprocess() + policy.assign_muxprocess(0) self.assertEquals(0x1, policy.mask) def test_assign_muxprocess_4core(self): # Big SMP gets a dedicated core. policy = self.klass(cpu_count=4) - policy.assign_muxprocess() + policy.assign_muxprocess(0) self.assertEquals(0x1, policy.mask) - policy.assign_muxprocess() + policy.assign_muxprocess(0) self.assertEquals(0x1, policy.mask) def test_assign_worker_1core(self):