[PATCH mptcp-next] Squash to "selftests: mptcp: add backup with port testcase"

Geliang Tang posted 1 patch 4 years 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 backup with port testcase"
Posted by Geliang Tang 4 years 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 ba7025064fb6..ca6e47203455 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
@@ -500,7 +500,7 @@ do_transfer()
 						fi
 					fi
 				done
-				[ ! -z $port ]; _port="port $port"
+				if [ $port -ne 0 ]; then _port="port $port"; fi
 				ip netns exec $netns ./pm_nl_ctl set $addr flags $sflags $_port
 			done
 		done
-- 
2.31.1