]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Add duplicate config only for MD5 VRF tests
authorDavid Ahern <dsahern@kernel.org>
Sat, 11 Dec 2021 17:11:30 +0000 (10:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Dec 2021 16:24:27 +0000 (16:24 +0000)
commit628ce36225b93e45326d416cdbe6a8ad95cc6551
tree72ad003f5388e12b4eb345727f331b3c79f9fce8
parent6f2dd4c37bb01edc67cd63c479e8fbe2ffdb3f2a
selftests: Add duplicate config only for MD5 VRF tests

Commit referenced below added configuration in the default VRF that
duplicates a VRF to check MD5 passwords are properly used and fail
when expected. That config should not be added all the time as it
can cause tests to pass that should not (by matching on default VRF
setup when it should not). Move the duplicate setup to a function
that is only called for the MD5 tests and add a cleanup function
to remove it after the MD5 tests.

Fixes: 4ed407fd8b0e ("fcnal-test: Add TCP MD5 tests for VRF")
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fcnal-test.sh