public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>,
	ltp-list@lists.sourceforge.net
Cc: vasily.isaenko@oracle.com
Subject: Re: [LTP] [PATCH] kernel/connectors: TCONF vs TBROK, and fix check for root
Date: Mon, 28 Oct 2013 11:14:36 +0800	[thread overview]
Message-ID: <526DD69C.2070302@cn.fujitsu.com> (raw)
In-Reply-To: <1382704355-27129-1-git-send-email-stanislav.kholmanskikh@oracle.com>

On 10/25/2013 08:32 PM, Stanislav Kholmanskikh wrote:
> Fixed check for root the same way as in
> 08dcfbb5a4ebad9319c54935a600ab936708c6da.
> 
> If the test is run on unsupported kernels it
> should return TCONF, not TBROK. Fixed this.
> 
> Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

> ---
>  testcases/kernel/connectors/pec/run_pec_test |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/testcases/kernel/connectors/pec/run_pec_test b/testcases/kernel/connectors/pec/run_pec_test
> index 7577ffa..2729485 100755
> --- a/testcases/kernel/connectors/pec/run_pec_test
> +++ b/testcases/kernel/connectors/pec/run_pec_test
> @@ -33,14 +33,14 @@ export TST_COUNT=1
>  
>  exit_status=0
>  
> -if [ "$USER" != root ]; then
> -	tst_brkm TBROK ignored "Test must be run as root"
> +if [ $(id -u) != 0 ]; then
> +	tst_brkm TCONF ignored "Test must be run as root"
>  	exit 0;
>  fi
>  
>  grep cn_proc /proc/net/connector > /dev/null
>  if [ $? -ne 0 ]; then
> -	tst_brkm TBROK ignored "Process Event Connector is not supported or kernel is below 2.6.26"
> +	tst_brkm TCONF ignored "Process Event Connector is not supported or kernel is below 2.6.26"
>  	exit 0;
>  fi
>  
> @@ -77,7 +77,7 @@ run_case()
>  	fi
>  
>  	if [ $ret2 -eq 2 ]; then
> -		tst_brkm TBROK NULL "connector may not be supported"
> +		tst_brkm TCONF NULL "connector may not be supported"
>  		exit 0
>  	fi
>  
> 


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-10-28  3:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-25 12:32 [LTP] [PATCH] kernel/connectors: TCONF vs TBROK, and fix check for root Stanislav Kholmanskikh
2013-10-28  3:14 ` Wanlong Gao [this message]
2013-10-29  6:06 ` Wanlong Gao

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=526DD69C.2070302@cn.fujitsu.com \
    --to=gaowanlong@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=stanislav.kholmanskikh@oracle.com \
    --cc=vasily.isaenko@oracle.com \
    /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