提交 e77c3236 编写于 作者: J Jie2x Zhou 提交者: Zheng Zengkai

selftests: net: Correct ping6 expected rc from 2 to 1

stable inclusion
from stable-v5.10.88
commit c058c544e73acabc527bf72ec1ccbb2a2581c291
bugzilla: 186058 https://gitee.com/openeuler/kernel/issues/I4QW6A

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c058c544e73acabc527bf72ec1ccbb2a2581c291

--------------------------------

[ Upstream commit 92816e26 ]

./fcnal-test.sh -v -t ipv6_ping
TEST: ping out, VRF bind - ns-B IPv6 LLA                                      [FAIL]
TEST: ping out, VRF bind - multicast IP                                       [FAIL]

ping6 is failing as it should.
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 fe80::7c4c:bcff:fe66:a63a%red
strace of ping6 shows it is failing with '1',
so change the expected rc from 2 to 1.

Fixes: c0644e71 ("selftests: Add ipv6 ping tests to fcnal-test")
Reported-by: Nkernel test robot <lkp@intel.com>
Suggested-by: NDavid Ahern <dsahern@gmail.com>
Signed-off-by: NJie2x Zhou <jie2x.zhou@intel.com>
Link: https://lore.kernel.org/r/20211209020230.37270-1-jie2x.zhou@intel.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 8bf8406e
...@@ -2128,7 +2128,7 @@ ipv6_ping_vrf() ...@@ -2128,7 +2128,7 @@ ipv6_ping_vrf()
log_start log_start
show_hint "Fails since VRF device does not support linklocal or multicast" show_hint "Fails since VRF device does not support linklocal or multicast"
run_cmd ${ping6} -c1 -w1 ${a} run_cmd ${ping6} -c1 -w1 ${a}
log_test_addr ${a} $? 2 "ping out, VRF bind" log_test_addr ${a} $? 1 "ping out, VRF bind"
done done
for a in ${NSB_IP6} ${NSB_LO_IP6} ${NSB_LINKIP6}%${NSA_DEV} ${MCAST}%${NSA_DEV} for a in ${NSB_IP6} ${NSB_LO_IP6} ${NSB_LINKIP6}%${NSA_DEV} ${MCAST}%${NSA_DEV}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册