All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: GangYan <gang.yan@linux.dev>
Cc: MPTCP Linux <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-next v3] selftests: net: mptcp: add checks for fallback counters
Date: Fri, 15 Aug 2025 12:39:55 +0200	[thread overview]
Message-ID: <c952a5ca-463d-4ec2-ab47-70e8fc4193fe@kernel.org> (raw)
In-Reply-To: <aJ76OvpQPr3wuNuT@yangang-ThinkPad-T14-Gen-1>

Hi Gang,

On 15/08/2025 11:13, GangYan wrote:
>> On Fri, Aug 15, 2025 at 10:24:18AM +0200, Matthieu Baerts wrote:
>> 15 Aug 2025 09:32:11 Gang Yan <yangang@kylinos.cn>:
>>
>>> Recently, some mib counters about fallback has been added, this patch
>>> provides a method to check the expected behavior of these mib counters
>>> during the test execution.
>>>
>>> Link: https://github.com/multipath-tcp/mptcp_net-next/issues/571
>>> Signed-off-by: Gang Yan <yangang@kylinos.cn>

(...)
>>> diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
>>> index b8af65373b3a..898779a9af58 100755
>>> --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
>>> +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh

(...)

>>> +chk_fallback_nr_all()
>>> +{
>>> +   local netns=("ns1" "ns2")
>>> +   local fb_ns=("fb_ns1" "fb_ns2")
>>> +   local rc=${KSFT_PASS}
>>> +
>>> +   for i in 0 1; do

I forgot to add: 'i' should be declared as 'local' as well.

>>> +       if [ -n "${!fb_ns[i]}" ]; then
>>> +           eval "${!fb_ns[i]}" \
>>> +               chk_fallback_nr ${netns[i]} || rc={?}
>>> +       else
>>> +           chk_fallback_nr ${netns[i]} || rc={?}
> CI has reported some errors in 'rc={?}'

I guess the issue is with ${netns[i]}: is it not enough to add double
quotes around it?

  chk_fallback_nr "${netns[i]}" || rc={?}

or explicitly use the variable $i?

  chk_fallback_nr "${netns[$i]}" || rc={?}

(same above)

>  I'll fix this in the next version

OK, I will wait for the next version.

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


  parent reply	other threads:[~2025-08-15 10:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-15  7:31 [PATCH mptcp-next v3] selftests: net: mptcp: add checks for fallback counters Gang Yan
2025-08-15  8:24 ` Matthieu Baerts
     [not found]   ` <aJ76OvpQPr3wuNuT@yangang-ThinkPad-T14-Gen-1>
2025-08-15 10:39     ` Matthieu Baerts [this message]
2025-08-15  9:20 ` MPTCP CI

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c952a5ca-463d-4ec2-ab47-70e8fc4193fe@kernel.org \
    --to=matttbe@kernel.org \
    --cc=gang.yan@linux.dev \
    --cc=mptcp@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.