mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +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
|
||||
:returns: Output of command.
|
||||
"""
|
||||
return self.target._execute_util(
|
||||
'CGMOUNT={} cgroups_run_into {} {}'\
|
||||
.format(self.cgroup_root, cgroup, cmdline),
|
||||
as_root=True)
|
||||
|
||||
cmd = self.run_into_cmd(cgroup, cmdline)
|
||||
return self.target.execute(cmd)
|
||||
|
||||
def cgroups_tasks_move(self, srcg, dstg, exclude=''):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user