mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 13:40:48 +00:00
cgroups: Fix run_into method
The current run_into method attempts to execute: <...>/shutils CGMOUNT=<...> cgroups_run_into <...> Which should instead be: CGMOUNT=<...> <...>/shutils cgroups_run_into <...> So just use cgroups_run_into_cmd to generate the command, then execute that.
This commit is contained in:
parent
dbd12994fb
commit
d0e28f0a89
@ -392,11 +392,8 @@ class CgroupsModule(Module):
|
|||||||
:param cgroup: Name of cgroup to run command into
|
:param cgroup: Name of cgroup to run command into
|
||||||
:returns: Output of command.
|
:returns: Output of command.
|
||||||
"""
|
"""
|
||||||
return self.target._execute_util(
|
cmd = self.run_into_cmd(cgroup, cmdline)
|
||||||
'CGMOUNT={} cgroups_run_into {} {}'\
|
return self.target.execute(cmd)
|
||||||
.format(self.cgroup_root, cgroup, cmdline),
|
|
||||||
as_root=True)
|
|
||||||
|
|
||||||
|
|
||||||
def cgroups_tasks_move(self, srcg, dstg, exclude=''):
|
def cgroups_tasks_move(self, srcg, dstg, exclude=''):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user