From a0bd839e9e1ee3c5c5ae3a88b3b7fe132da71a4d Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 8 Jan 2016 09:52:45 +0000 Subject: [PATCH] Rename and enable 'isolate' test case There was a test case provided for the 'isolate' policy, formerly known as 'separate', but it was disabled due to missing support for this feature. Because support has now been added we can enable this test. Change-Id: If8a96b0016ea05260dc598334ba434d9e4045ecf Partial-Bug: #1535812 --- intel_nfv_ci_tests/tests/scenario/test_cpu_pinning.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/intel_nfv_ci_tests/tests/scenario/test_cpu_pinning.py b/intel_nfv_ci_tests/tests/scenario/test_cpu_pinning.py index a178899..1c28b41 100644 --- a/intel_nfv_ci_tests/tests/scenario/test_cpu_pinning.py +++ b/intel_nfv_ci_tests/tests/scenario/test_cpu_pinning.py @@ -160,18 +160,17 @@ class FlavorsAdminTestJSON(base.BaseV2ComputeAdminTest): flavor = self._create_flavor(cpu_policy='shared') self._create_server(flavor) - @decorators.skip_because(bug='0') - def test_cpu_dedicated_threads_separate(self): + def test_cpu_dedicated_threads_isolate(self): """Ensure vCPUs *are not* placed on thread siblings.""" flavor = self._create_flavor( - cpu_policy='dedicated', cpu_threads_policy='separate') + cpu_policy='dedicated', cpu_threads_policy='isolate') server = self._create_server(flavor) cpu_pinnings = self._get_cpu_pinning(server) core_mappings = get_core_mappings() self.assertEqual(len(cpu_pinnings), self.vcpus) - # if the 'prefer' policy is used, then when one thread is used + # if the 'isolate' policy is used, then when one thread is used # the other should never be used. for vcore in set(cpu_pinnings): pcpu = cpu_pinnings[vcore]