public inbox for linux-kselftest@vger.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: "Zhou, Jie2X" <jie2x.zhou@intel.com>,
	Jakub Kicinski <kuba@kernel.org>,
	"lizhijian@fujitsu.com" <lizhijian@fujitsu.com>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
	"shuah@kernel.org" <shuah@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kselftest@vger.kernel.org"
	<linux-kselftest@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Li, Philip" <philip.li@intel.com>, lkp <lkp@intel.com>,
	"Ma, XinjianX" <xinjianx.ma@intel.com>,
	"Li, ZhijianX" <zhijianx.li@intel.com>
Subject: Re: selftests/net/fcnal-test.sh: ipv6_ping test failed
Date: Tue, 7 Dec 2021 20:54:42 -0700	[thread overview]
Message-ID: <ec6245eb-4bee-f3f3-6bc1-c91ef2b06aa4@gmail.com> (raw)
In-Reply-To: <PH0PR11MB47924ED34AE948FB0E6CF933C56F9@PH0PR11MB4792.namprd11.prod.outlook.com>

On 12/7/21 8:50 PM, Zhou, Jie2X wrote:
> hi,
> 
>   man ip, the output about exit value is like following.
>   "Exit status is 0 if command was successful, and 1 if there is a syntax error.  If an error was reported by the kernel exit status is 2."
>   Did the following COMMAND have syntax error? If not, should I still change the expected rc from 2 to 1?

strace of ping6 shows it is failing with '1'.

As for 'ip', it returns the exit code of the command run. iproute2 code,
lib/exec.c, cmd_exec().

      reply	other threads:[~2021-12-08  3:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07  7:07 selftests/net/fcnal-test.sh: ipv6_ping test failed Zhou, Jie2X
2021-12-07 15:58 ` Jakub Kicinski
2021-12-08  3:20   ` David Ahern
2021-12-08  3:50     ` Zhou, Jie2X
2021-12-08  3:54       ` David Ahern [this message]

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=ec6245eb-4bee-f3f3-6bc1-c91ef2b06aa4@gmail.com \
    --to=dsahern@gmail.com \
    --cc=davem@davemloft.net \
    --cc=jie2x.zhou@intel.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=lizhijian@fujitsu.com \
    --cc=lkp@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=philip.li@intel.com \
    --cc=shuah@kernel.org \
    --cc=xinjianx.ma@intel.com \
    --cc=zhijianx.li@intel.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