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)
commit7e0147592b5c4f9e2eb8c54a7857a56d4863f74e
tree72ad003f5388e12b4eb345727f331b3c79f9fce8
parent8f2fd39355aecbb95cd758cbc1f5469fa1e546cf
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: 5cad8bce26e0 ("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