Exemple #1
0
 def test_parse_cpu_spec_none_returns_none(self):
     self.flags(vcpu_pin_set=None)
     cpuset_ids = hw.get_vcpu_pin_set()
     self.assertIsNone(cpuset_ids)
Exemple #2
0
 def test_parse_cpu_spec_none_returns_none(self):
     self.flags(vcpu_pin_set=None)
     cpuset_ids = hw.get_vcpu_pin_set()
     self.assertIsNone(cpuset_ids)
Exemple #3
0
 def test_get_vcpu_pin_set(self):
     self.flags(vcpu_pin_set="1-3,5,^2")
     cpuset_ids = hw.get_vcpu_pin_set()
     self.assertEqual([1, 3, 5], cpuset_ids)
Exemple #4
0
 def test_get_vcpu_pin_set(self):
     self.flags(vcpu_pin_set="1-3,5,^2")
     cpuset_ids = hw.get_vcpu_pin_set()
     self.assertEqual([1, 3, 5], cpuset_ids)