selftests: mptcp: lib: catch duplicated subtest entries
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 23 Feb 2024 20:17:53 +0000 (21:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 02:42:11 +0000 (18:42 -0800)
commit9da74836740d9c753fb6cd270f7c75c5258836de
treeafc8be1e017f61adc54c0eb2bf0bb84c9383fd3e
parentc3718936ec47ae811a7ce9a618b6cb1cda835bab
selftests: mptcp: lib: catch duplicated subtest entries

It is important to have a unique (sub)test name in TAP, because some CI
environments drop tests with duplicated name.

When adding a new subtest entry, an error message is printed in case of
duplicated entries. If there were duplicated entries and if all features
were expected to work, the script exits with an error at the end, after
having printed all subtests in the TAP format. Thanks to that, the MPTCP
CI will catch such issues early.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240223-upstream-net-next-20240223-misc-improvements-v1-1-b6c8a10396bd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_lib.sh