Merge "Rename and enable 'isolate' test case"

This commit is contained in:
Jenkins 2016-02-11 11:34:21 +00:00 committed by Gerrit Code Review
commit d3c07c1c5d
1 changed files with 3 additions and 4 deletions

View File

@ -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]