Cgroup.create(config, CONTROLLER, CGNAME)
+def is_cpuset_exclusive_oddity(entry, out):
+ # upstream commit 7476a636d3100 ("cgroup/cpuset: Show invalid
+ # partition reason string"), doesn't return error but needs to be
+ # read again
+ if (entry[0] == 'cpuset.cpu_exclusive' and entry[1] == '1' and
+ (out == '0' or out[:12] == "root invalid")):
+ return True
+
+ if (entry[0] == 'cpuset.cpus.partition' and entry[1] == 'root' and
+ (out == '0' or out[:12] == 'root invalid')):
+ return True
+
+ return False
+
+
def test(config):
result = consts.TEST_PASSED
cause = None
version=entry[5], values_only=True,
print_headers=False)
if out != entry[4]:
+ if (is_cpuset_exclusive_oddity(entry, out)):
+ continue
+
result = consts.TEST_FAILED
cause = (
'After setting {}={}, expected {}={}, but received '