kernel/tools/testing/selftests/net/mptcp/diag.sh
.. .. @@ -1,6 +1,8 @@ 1 1 #!/bin/bash 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 +. "$(dirname "${0}")/mptcp_lib.sh"5 +4 6 rndh=$(printf %x $sec)-$(mktemp -u XXXXXX) 5 7 ns="ns1-$rndh" 6 8 ksft_skip=4 .. .. @@ -28,6 +30,8 @@ 28 30 done 29 31 } 30 32 33 +mptcp_lib_check_mptcp34 +31 35 ip -Version > /dev/null 2>&1 32 36 if [ $? -ne 0 ];then 33 37 echo "SKIP: Could not run test without ip tool"