Re: selftests/net/fcnal-test.sh: ipv6_ping test failed

From: David Ahern
Date: Tue Dec 07 2021 - 22:54:47 EST


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().