Make each element of self.args contains only one argument. Signed-off-by: Atsushi Nemoto <atsushi.nemoto@xxxxxxxxxx> --- rteval/modules/loads/stressng.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rteval/modules/loads/stressng.py b/rteval/modules/loads/stressng.py index 926de38..c259554 100644 --- a/rteval/modules/loads/stressng.py +++ b/rteval/modules/loads/stressng.py @@ -50,9 +50,9 @@ class Stressng(CommandLineLoad): self.args = ['stress-ng'] self.args.append('--%s' % str(self.cfg.option)) if self.cfg.arg is not None: - self.args.append(self.cfg.arg) + self.args.extend(self.cfg.arg.split()) if self.cfg.timeout is not None: - self.args.append('--timeout %s' % str(self.cfg.timeout)) + self.args.extend(['--timeout', str(self.cfg.timeout)]) systop = SysTopology() # get the number of nodes @@ -74,7 +74,7 @@ class Stressng(CommandLineLoad): if self.cpulist: for node in nodes: cpulist = ",".join([str(n) for n in cpus[node]]) - self.args.append('--taskset %s' % cpulist) + self.args.extend(['--taskset', cpulist]) def _WorkloadTask(self): """ Kick of the workload here """ -- 2.11.0