1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

cgroups: Strip shutils log message from run_into output

This commit is contained in:
Brendan Jackman 2017-01-12 16:45:54 +00:00
parent d0e28f0a89
commit de61937d09

View File

@ -393,7 +393,10 @@ class CgroupsModule(Module):
:returns: Output of command. :returns: Output of command.
""" """
cmd = self.run_into_cmd(cgroup, cmdline) cmd = self.run_into_cmd(cgroup, cmdline)
return self.target.execute(cmd) raw_output = self.target.execute(cmd)
# First line of output comes from shutils; strip it out.
return raw_output.split('\n', 1)[1]
def cgroups_tasks_move(self, srcg, dstg, exclude=''): def cgroups_tasks_move(self, srcg, dstg, exclude=''):
""" """