public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Wei, Jiangang <weijg.fnst@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] testscripts: make redirects happen in correct order
Date: Wed, 30 Sep 2015 04:20:19 +0000	[thread overview]
Message-ID: <1443586814.11646.20.camel@localhost> (raw)
In-Reply-To: <1443583556-20470-1-git-send-email-weijg.fnst@cn.fujitsu.com>

The patch set had been sent at 2015/09/21.
But  no feedback received.
I'm afraid of them was flooded.
so send again.
 
On Wed, 2015-09-30 at 11:25 +0800, Wei Jiangang wrote:
> It should redirect stdout to /dev/null firstly,
> then redirect stderr to whatever stdout currently points at.
> 
> Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
> ---
>  testscripts/ltpstress.sh   |  4 ++--
>  testscripts/runEALtests.sh | 10 +++++-----
>  2 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/testscripts/ltpstress.sh b/testscripts/ltpstress.sh
> index 39a5caf..1a16779 100755
> --- a/testscripts/ltpstress.sh
> +++ b/testscripts/ltpstress.sh
> @@ -265,10 +265,10 @@ fi
>  ulimit -u unlimited
>  
>  if [ $PROC_NUM -gt 0 ];then
> -  genload --vm $PROC_NUM --vm-bytes 1073741824 2>&1 1>/dev/null &
> +  genload --vm $PROC_NUM --vm-bytes 1073741824 1>/dev/null 2>&1 &
>  fi
>  if [ $leftover_memsize -gt 0 ];then
> -  genload --vm 1 --vm-bytes $(($leftover_memsize * 1024)) 2>&1 1>/dev/null &
> +  genload --vm 1 --vm-bytes $(($leftover_memsize * 1024)) 1>/dev/null 2>&1 &
>  fi
>  
>  if [ $NO_NETWORK -eq 0 ];then
> diff --git a/testscripts/runEALtests.sh b/testscripts/runEALtests.sh
> index bcd3f29..577be28 100755
> --- a/testscripts/runEALtests.sh
> +++ b/testscripts/runEALtests.sh
> @@ -84,7 +84,7 @@ fi
>  while getopts cd:f:hi:l:m:Nnpqr:t:x arg
>  do  case $arg in
>      c)
> -            $LTPROOT/../testcases/bin/genload --cpu 1 2>&1 1>/dev/null &
> +            $LTPROOT/../testcases/bin/genload --cpu 1 1>/dev/null 2>&1 &
>  	    GenLoad=1 ;;
>  
>      d)      # append $$ to TMP, as it is recursively
> @@ -97,9 +97,9 @@ do  case $arg in
>  
>      i)
>              bytesize=$(($OPTARG * 1024 * 1024))
> -            $LTPROOT/../testcases/bin/genload --io 1 2>&1 1>/dev/null &
> +            $LTPROOT/../testcases/bin/genload --io 1 1>/dev/null 2>&1 &
>              $LTPROOT/../testcases/bin/genload --hdd 0 --hdd-bytes $bytesize \
> -            2>&1 1>/dev/null &
> +            1>/dev/null 2>&1 &
>  	    GenLoad=1 ;;
>  
>      l)
> @@ -125,7 +125,7 @@ do  case $arg in
>      m)
>              memsize=$(($OPTARG * 1024 * 1024))
>  	    $LTPROOT/../testcases/bin/genload  --vm 0 --vm-bytes $memsize\
> -            2>&1 1>/dev/null &
> +            1>/dev/null 2>&1 &
>  	    GenLoad=1;;
>  
>      N)	    run_netest=1;;
> @@ -217,7 +217,7 @@ fi
>  
>  if [ $GenLoad -eq 1 ]
>  then
> -	killall -9 genload
> +	killall -9 genload >/dev/null 2>&1
>  fi
>  
>  if [ $NetPipe -eq 1 ]


  parent reply	other threads:[~2015-09-30  4:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30  3:25 [LTP] [PATCH 1/2] testscripts: make redirects happen in correct order Wei Jiangang
2015-09-30  3:25 ` [LTP] [PATCH 2/2] cpuhotplug_hotplug.sh: do/done should be left-aligned Wei Jiangang
2015-09-30 12:18   ` Cyril Hrubis
2015-09-30  4:20 ` Wei, Jiangang [this message]
2015-09-30 12:16 ` [LTP] [PATCH 1/2] testscripts: make redirects happen in correct order Cyril Hrubis
2015-10-07  1:45   ` [LTP] [PATCH v2 " Wei Jiangang
2015-10-07  1:45     ` [LTP] [PATCH v2 2/2] cpuhotplug_hotplug.sh: change the style of for-loop Wei Jiangang
2015-10-07 12:29       ` Cyril Hrubis
  -- strict thread matches above, loose matches on Subject: below --
2015-09-21  9:33 [LTP] [PATCH 1/2] testscripts: make redirects happen in correct order Wei Jiangang

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=1443586814.11646.20.camel@localhost \
    --to=weijg.fnst@cn.fujitsu.com \
    --cc=ltp@lists.linux.it \
    /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