From: Andrea Mayer <andrea.mayer@uniroma2.it>
To: Hangbin Liu <hangbin.liu@linux.dev>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Hangbin Liu <liuhangbin@kylinos.cn>,
Stefano Salsano <stefano.salsano@uniroma2.it>,
Andrea Mayer <andrea@common-net.org>,
Andrea Mayer <andrea.mayer@uniroma2.it>
Subject: Re: [PATCH net-next v5 3/5] selftests: seg6: move SRv6 End PSP setup into its own helper
Date: Mon, 30 Nov 2026 04:47:14 +0100 [thread overview]
Message-ID: <20261130044714.e6c92e9a6b9999a18475c161@uniroma2.it> (raw)
In-Reply-To: <20261126-srv6_flavors_endx-v5-3-4d8232eec404@kylinos.cn>
On Thu, 26 Nov 2026 14:27:25 +0800
Hangbin Liu <hangbin.liu@linux.dev> wrote:
Hi Hangbin,
> From: Hangbin Liu <liuhangbin@kylinos.cn>
>
> setup() installs both the base topology and the End PSP policies. That
> couples general test setup with one specific flavor scenario and makes
> it hard to add further flavor cases cleanly.
>
> Extract the End PSP policy setup into setup_end_flv_psp() so flavor
> tests can set up and later tear down independently (the matching
> cleanup arrives in a following patch).
>
> Run the block under set -e so a setup failure is treated as an error
> instead of falling through into the connectivity checks. When deciding
> to report the run as skipped, keep any failure already recorded by a
> test, so a real failure is not converted into a skip.
>
> Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
> [snip]
> @@ -488,10 +488,15 @@ cleanup()
>
> # check whether the setup phase was completed successfully or not. In
> # case of an error during the setup phase of the testing environment,
> - # the selftest is considered as "skipped".
> + # the selftest is considered as "skipped", unless a test has already
> + # recorded a failure.
> if [ "${SETUP_ERR}" -ne 0 ]; then
> - echo "SKIP: Setting up the testing environment failed"
> - exit "${ksft_skip}"
> + if [ "$ret" -ne "$ksft_fail" ]; then
> + echo "SKIP: Setting up the testing environment failed"
> + exit "${ksft_skip}"
> + fi
> +
> + echo "FAIL: Setting up the testing environment failed"
> fi
>
> exit "${ret}"
Nit, a style preference: "${ret}" and "${ksft_fail}", as for the
other variables here.
Thanks,
Andrea
next prev parent reply other threads:[~2026-11-30 3:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 6:27 [PATCH net-next v5 0/5] seg6: add End.X PSP flavor support and selftests Hangbin Liu
2026-11-26 6:27 ` [PATCH net-next v5 1/5] seg6: split final End process out of flavor processing Hangbin Liu
2026-11-30 3:55 ` Andrea Mayer
2026-11-26 6:27 ` [PATCH net-next v5 2/5] seg6: add RFC8986 flavor support for End.X Hangbin Liu
2026-11-30 4:03 ` Andrea Mayer
2026-11-26 6:27 ` [PATCH net-next v5 3/5] selftests: seg6: move SRv6 End PSP setup into its own helper Hangbin Liu
2026-11-30 3:47 ` Andrea Mayer [this message]
2026-11-26 6:27 ` [PATCH net-next v5 4/5] selftests: seg6: explicit cleanup for SRv6 End PSP test Hangbin Liu
2026-11-26 6:27 ` [PATCH net-next v5 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X Hangbin Liu
2026-12-01 0:14 ` Andrea Mayer
2026-11-29 2:38 ` [PATCH net-next v5 0/5] seg6: add End.X PSP flavor support and selftests Andrea Mayer
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=20261130044714.e6c92e9a6b9999a18475c161@uniroma2.it \
--to=andrea.mayer@uniroma2.it \
--cc=andrea@common-net.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=liuhangbin@kylinos.cn \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=stefano.salsano@uniroma2.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®