Without that, all mptcp_connect*.sh subtests have the same name, e.g.
mptcp_connect: ping tests ## from mptcp_connect.sh
mptcp_connect: ping tests ## from mptcp_connect_checksum.sh
mptcp_connect: ping tests ## from mptcp_connect_mmap.sh
mptcp_connect: ping tests ## from mptcp_connect_sendfile.sh
In such case, the CI will only see one subtest, not 4 different ones.
To fix that, MPTCP_LIB_KSFT_TEST env var can simply be set.
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
tools/testing/selftests/net/mptcp/mptcp_connect_mmap.sh | 3 ++-
tools/testing/selftests/net/mptcp/mptcp_connect_sendfile.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect_mmap.sh b/tools/testing/selftests/net/mptcp/mptcp_connect_mmap.sh
index 09bde1303bf79198fe9f7890cbe89901859d78e8..5dd30f9394af6a88b14936a64c50ac9566be2e6e 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_connect_mmap.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_connect_mmap.sh
@@ -1,4 +1,5 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
-"$(dirname "${0}")/mptcp_connect.sh" -m mmap "${@}"
+MPTCP_LIB_KSFT_TEST="$(basename "${0}" .sh)" \
+ "$(dirname "${0}")/mptcp_connect.sh" -m mmap "${@}"
diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect_sendfile.sh b/tools/testing/selftests/net/mptcp/mptcp_connect_sendfile.sh
index c50d08481581f0f8997c6f4f2174d606150bfa6a..1d16fb1cc9bb6d1f88a9fdc11206237ca2b790bb 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_connect_sendfile.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_connect_sendfile.sh
@@ -1,4 +1,5 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
-"$(dirname "${0}")/mptcp_connect.sh" -m sendfile "${@}"
+MPTCP_LIB_KSFT_TEST="$(basename "${0}" .sh)" \
+ "$(dirname "${0}")/mptcp_connect.sh" -m sendfile "${@}"
--
2.48.1