forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/tools/testing/selftests/net/mptcp/diag.sh
....@@ -1,6 +1,8 @@
11 #!/bin/bash
22 # SPDX-License-Identifier: GPL-2.0
33
4
+. "$(dirname "${0}")/mptcp_lib.sh"
5
+
46 rndh=$(printf %x $sec)-$(mktemp -u XXXXXX)
57 ns="ns1-$rndh"
68 ksft_skip=4
....@@ -28,6 +30,8 @@
2830 done
2931 }
3032
33
+mptcp_lib_check_mptcp
34
+
3135 ip -Version > /dev/null 2>&1
3236 if [ $? -ne 0 ];then
3337 echo "SKIP: Could not run test without ip tool"