Re: [PATCH net-next v6 3/6] selftests: seg6: move SRv6 End PSP setup into its own helper
From: Andrea Mayer
Date: Fri Dec 04 2026 - 22:21:13 EST
On Wed, 02 Dec 2026 16:46:29 +0800
Hangbin Liu <hangbin.liu@xxxxxxxxx> wrote:
> From: Hangbin Liu <liuhangbin@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> [snip]
Reviewed-by: Andrea Mayer <andrea.mayer@xxxxxxxxxxx>
Thanks,
Andrea