[PATCH mptcp-next] Squash to "selftests: mptcp: add wrapper for setting flags"

Geliang Tang posted 1 patch 2 years, 2 months ago
Failed in applying to current master (apply log)
tools/testing/selftests/net/mptcp/mptcp_join.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH mptcp-next] Squash to "selftests: mptcp: add wrapper for setting flags"
Posted by Geliang Tang 2 years, 2 months ago
'-z' is incorrect, use '-ne' instead.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 tools/testing/selftests/net/mptcp/mptcp_join.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
index f4efd18447c4..5cc892b350e0 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
@@ -397,7 +397,7 @@ pm_nl_change_endpoint()
 	if [ $ip_mptcp -eq 1 ]; then
 		ip -n $ns mptcp endpoint change id $id ${flags//","/" "}
 	else
-		[ ! -z $5 ]; port="port $5"
+		if [ $5 -ne 0 ]; then port="port $5"; fi
 		ip netns exec $ns ./pm_nl_ctl set $addr flags $flags $port
 	fi
 }
-- 
2.31.1