From: Geliang Tang Date: Fri, 29 Oct 2021 23:55:58 +0000 (-0700) Subject: selftests: mptcp: fix proto type in link_failure tests X-Git-Tag: v6.1-rc5~2768^2~12^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c909a98042ce403c8497c5d6ff94dd53bdd2131;p=platform%2Fkernel%2Flinux-starfive.git selftests: mptcp: fix proto type in link_failure tests In listener_ns, we should pass srv_proto argument to mptcp_connect command, not cl_proto. Fixes: 7d1e6f1639044 ("selftests: mptcp: add testcase for active-back") Signed-off-by: Geliang Tang Signed-off-by: Matthieu Baerts Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh index 293d349..7ef639a 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh @@ -297,7 +297,7 @@ do_transfer() if [ "$test_link_fail" -eq 2 ];then timeout ${timeout_test} \ ip netns exec ${listener_ns} \ - $mptcp_connect -t ${timeout_poll} -l -p $port -s ${cl_proto} \ + $mptcp_connect -t ${timeout_poll} -l -p $port -s ${srv_proto} \ ${local_addr} < "$sinfail" > "$sout" & else timeout ${timeout_test} \