Skip to content

Commit cf74e0a

Browse files
matttbekuba-moo
authored andcommitted
selftests: mptcp: connect: print pcap prefix
To be able to find which capture files have been produced after several runs. This prefix was not printed anywhere before. While at it, always use the same prefix by taking info from ns1, instead of "$connector_ns", which is sometimes ns1, sometimes ns2 in the subtests. Reviewed-by: Mat Martineau <martineau@kernel.org> Reviewed-by: Geliang Tang <geliang@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20250912-net-mptcp-fix-sft-connect-v1-5-d40e77cbbf02@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent a17c5aa commit cf74e0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ if $checksum; then
211211
done
212212
fi
213213

214+
if $capture; then
215+
rndh="${ns1:4}"
216+
mptcp_lib_pr_info "Packet capture files will have this prefix: ${rndh}-"
217+
fi
218+
214219
set_ethtool_flags() {
215220
local ns="$1"
216221
local dev="$2"
@@ -361,7 +366,6 @@ do_transfer()
361366

362367
if $capture; then
363368
local capuser
364-
local rndh="${connector_ns:4}"
365369
if [ -z $SUDO_USER ] ; then
366370
capuser=""
367371
else

0 commit comments

Comments
 (0)