linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
To: linux-rt-users@vger.kernel.org, jkacur@redhat.com
Subject: Re: [rteval PATCH] rteval: stressng.py: Fix arguments for Popen
Date: Tue, 14 Sep 2021 13:45:46 +0900 (JST)	[thread overview]
Message-ID: <20210914.134546.1926575477327712294.atsushi.nemoto@sord.co.jp> (raw)
In-Reply-To: <20210806.174641.1741870399325228428.atsushi.nemoto@sord.co.jp>

On Fri, 06 Aug 2021 17:46:41 +0900 (JST), Atsushi Nemoto <atsushi.nemoto@sord.co.jp> wrote:
> Make each element of self.args contains only one argument.
> 
> Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
> ---
>  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

Any comments?

There is an another problem in '--taskset' handling (do not work as
expected on multi-node system) so I want to create a patch on top of
this fix.

---
Atsushi Nemoto

  reply	other threads:[~2021-09-14  4:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-06  8:46 [rteval PATCH] rteval: stressng.py: Fix arguments for Popen Atsushi Nemoto
2021-09-14  4:45 ` Atsushi Nemoto [this message]
2021-09-14 12:51   ` John Kacur
2021-09-14 13:42     ` Atsushi Nemoto
2021-09-14 13:45 Atsushi Nemoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210914.134546.1926575477327712294.atsushi.nemoto@sord.co.jp \
    --to=atsushi.nemoto@sord.co.jp \
    --cc=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).