Skip to content

Commit 016e7ba

Browse files
matttbekuba-moo
authored andcommitted
selftests: mptcp: join: only check for ip6tables if needed
If 'iptables-legacy' is available, 'ip6tables-legacy' command will be used instead of 'ip6tables'. So no need to look if 'ip6tables' is available in this case. Cc: [email protected] Fixes: 0c4cd3f ("selftests: mptcp: join: use 'iptables-legacy' if available") Acked-by: Paolo Abeni <[email protected]> Signed-off-by: Matthieu Baerts <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fa29d46 commit 016e7ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/testing/selftests/net/mptcp/mptcp_join.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ check_tools()
162162
elif ! iptables -V &> /dev/null; then
163163
echo "SKIP: Could not run all tests without iptables tool"
164164
exit $ksft_skip
165-
fi
166-
167-
if ! ip6tables -V &> /dev/null; then
165+
elif ! ip6tables -V &> /dev/null; then
168166
echo "SKIP: Could not run all tests without ip6tables tool"
169167
exit $ksft_skip
170168
fi

0 commit comments

Comments
 (0)