From: Matthieu Baerts <matttbe@kernel.org>
To: Geliang Tang <geliang@kernel.org>, mptcp@lists.linux.dev
Cc: Geliang Tang <tanggeliang@kylinos.cn>
Subject: Re: [PATCH mptcp-next] Squash to "selftests/bpf: Add mptcp subflow subtest"
Date: Fri, 26 Jul 2024 11:18:55 +0200 [thread overview]
Message-ID: <39a825a6-ddf4-4ba4-97f1-9ac72d9ac811@kernel.org> (raw)
In-Reply-To: <fccaccd2e7a1ce8518782c85965a6e26d37a87f9.1721872694.git.tanggeliang@kylinos.cn>
Hi Geliang,
Thank you for the patch!
On 25/07/2024 03:58, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> Skip the test with test__skip() for systems that do not
> support "ip mptcp", so that CI can also pass.
>
> Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
> ---
> tools/testing/selftests/bpf/prog_tests/mptcp.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c
> index 00f63f3f19f4..ddef8c61360f 100644
> --- a/tools/testing/selftests/bpf/prog_tests/mptcp.c
> +++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c
> @@ -357,10 +357,11 @@ static int endpoint_init(char *flags)
> SYS(fail, "ip -net %s link set dev veth1 up", NS_TEST);
> SYS(fail, "ip -net %s addr add %s/24 dev veth2", NS_TEST, ADDR_2);
> SYS(fail, "ip -net %s link set dev veth2 up", NS_TEST);
> - /* It would be better to use "ip -net %s mptcp endpoint add %s %s",
> - * but the BPF CI is using an old version of IPRoute (5.5.0).
> - */
> - SYS(fail, "ip netns exec %s ./mptcp_pm_nl_ctl add %s flags %s", NS_TEST, ADDR_2, flags);
> + if (SYS_NOFAIL("ip -net %s mptcp endpoint add %s %s", NS_TEST, ADDR_2, flags)) {
This will silently mark the test as skipped, because stderr will be muted.
> + /* "ip mptcp" not support, skip this test. */
Could it be possible to at least print this comment? I can add:
fprintf(stderr, "'ip mptcp' not supported, skip this test.\n");
when applying the patch. WDYT?
> + test__skip();
> + goto fail;
> + }
>
> return 0;
> fail:
> @@ -435,7 +436,7 @@ static void test_subflow(void)
> if (!ASSERT_OK_PTR(nstoken, "create_netns: mptcp_subflow"))
> goto skel_destroy;
>
> - if (!ASSERT_OK(endpoint_init("subflow"), "endpoint_init"))
> + if (endpoint_init("subflow"))
> goto close_netns;
>
> run_subflow(skel->data->cc);
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2024-07-26 9:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-25 1:58 [PATCH mptcp-next] Squash to "selftests/bpf: Add mptcp subflow subtest" Geliang Tang
2024-07-25 2:47 ` MPTCP CI
2024-07-26 9:18 ` Matthieu Baerts [this message]
2024-07-27 1:12 ` Geliang Tang
2024-08-01 10:51 ` Matthieu Baerts
-- strict thread matches above, loose matches on Subject: below --
2024-09-10 15:29 Matthieu Baerts (NGI0)
2024-09-07 3:45 Geliang Tang
2024-09-07 4:38 ` MPTCP CI
2024-09-09 1:59 ` Geliang Tang
2024-05-11 10:41 Geliang Tang
2024-05-11 11:34 ` MPTCP CI
2024-05-11 13:50 ` Matthieu Baerts
2024-05-11 23:17 ` Geliang Tang
2024-05-12 9:14 ` Matthieu Baerts
2024-05-12 11:45 ` Geliang Tang
2024-05-12 12:42 ` Matthieu Baerts
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=39a825a6-ddf4-4ba4-97f1-9ac72d9ac811@kernel.org \
--to=matttbe@kernel.org \
--cc=geliang@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=tanggeliang@kylinos.cn \
/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.