Merge pull request #830 from stefanor/multi-word-mask

tests: Support multi-word cpusets
pull/854/head
Alex Willmer 3 years ago committed by GitHub
commit 2f56b16795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -179,7 +179,8 @@ class LinuxPolicyTest(testlib.TestCase):
try:
for line in fp:
if line.startswith('Cpus_allowed'):
return int(line.split()[1], 16)
mask = line.split()[1].replace(',', '')
return int(mask, 16)
finally:
fp.close()

Loading…
Cancel
Save