Article View: linux.kernel.netdev
Article #2063Re: [PATCH net-next v2 3/5] selftests: seg6: move SRv6 End PSP setup into its own helper
From: Hangbin Liu
Date: Mon, 12 Oct 2026 00:33
Date: Mon, 12 Oct 2026 00:33
48 lines
7928 bytes
7928 bytes
On Sat, Oct 10, 2026 at 10:21:03AM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found more severe
> issue(s) in other patches of this series. This mail is only an FYI, in case
> you want to address the nit picks below when you respin.
>
> Low priority / nit picks for your consideration:
>
> - [Low] The comment in cleanup()
> (tools/testing/selftests/net/srv6_end_flavors_test.sh, lines 328-330)…
>
> --
>
> selftests: seg6: move SRv6 End PSP setup into its own helper
>
> This commit moves the End PSP policy setup out of setup() and into a new
> helper, setup_end_flv_psp(). host_srv6_end_flv_psp_tests() now calls that
> helper with set -e and SETUP_ERR wrapped around it. cleanup() also changes
> so that a setup error only gives SKIP when ret is not already ksft_fail.
>
> > diff --git a/tools/testing/selftests/net/srv6_end_flavors_test.sh b/tools/testing/selftests/net/srv6_end_flavors_test.sh
> > index 30a939392eea4..5ebd6a0344d69 100755
> > --- a/tools/testing/selftests/net/srv6_end_flavors_test.sh
> > +++ b/tools/testing/selftests/net/srv6_end_flavors_test.sh
> > @@ -328,7 +328,7 @@ 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".
> > - if [ "${SETUP_ERR}" -ne 0 ]; then
> > + if [ "${SETUP_ERR}" -ne 0 ] && [ "$ret" -ne "$ksft_fail" ]; then
>
> [Severity: Low]
> This isn't a bug, but the comment above this condition in cleanup() still
> says that any setup error makes the selftest "skipped". Should it be
> updated to match the new condition?
>
> With this patch, host_srv6_end_flv_psp_tests() starts a second setup
> phase after router_tests and host2gateway_tests have already run.
>
> Suppose one of those earlier tests sets ret to ksft_fail, and then
> setup_end_flv_psp() fails. cleanup() then runs with SETUP_ERR=1 and ret=1.
> The SKIP branch is not taken, and the script exits 1 instead of
> ksft_skip.
This is intend. The test should report failed instead of skip if a test failed.
Thanks
Hangbin
Technical Details
Message-ID:
<aswq3SlvWG_ydFQR@fedora>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344659-linux-kernel-netdev=dewy.ruReferences:
<20261009-srv6_flavors_endx-v2-3-56ac7f838f41@kylinos.cn> <179162766399.434549.2048681726157385482@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344659-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 3/5] selftests: seg6: move SRv6 End PSP setup into its own helper Date: Mon, 12 Oct 2026 08:33:33 +0800 Organization: Usenet Network Message-ID: <aswq3SlvWG_ydFQR@fedora> References: <20261009-srv6_flavors_endx-v2-3-56ac7f838f41@kylinos.cn> <179162766399.434549.2048681726157385482@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1648660"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:YFBn71EVB6lBY5s7StDL5VH7A0U= sha256:gsOBByCUJOaOofceR0yJlab1HdD+ppOrkXtxe4p3xgg= sha1:lAp2GassM5lqdF2t3LYXoau7YfU= sha256:dYTU02w9mNHXt4rg0+3wn8EqeVZE1tEW7mWjVEl3lUw= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 2CA6A10FAA4; Mon, 12 Oct 2026 03:34:01 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.75 X-Spam-Status: No, score=-0.75 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QuumxLBRFpp9; Mon, 12 Oct 2026 03:33:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-344659-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 7071E10F57F; Mon, 12 Oct 2026 03:33:53 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id EFD6124F4D; Mon, 12 Oct 2026 00:33:49 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C23B2264CA; Mon, 12 Oct 2026 00:33:48 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="or9Y3EwL" X-Received: from mta0.migadu.com (out-126.mta0.migadu.com [91.218.175.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7420155C97 for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 00:33:46 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.126 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791765228; cv=none; b=BX23OHVozXz85yBp96SxsXBMMgGGygT/CfsYZjlcO1oqm69JUHTBgy4hpRtMgI69ymfmHGlenJSu552eVXXaomEeEv72JZOuRpZPj8jvqeqeHv7AFWz4p5AdYTspxzBYE5HmVciBtIgIjX/ELgKG0QWiEKSXX1bzOsHUbgkN+JY= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791765228; c=relaxed/simple; bh=A2FhU4MuJrHd8/v0XQVjBT/Ve73V1hi6TGe39ZtD+us=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZTmcfXi61dl2wzIfBLkW6OrFD8p7uhn9G9OZo5afdEruFQTIxIkB+4SumVnCKR0aGFro8FSQB+bc8s3oXxNo/T+dOMPPPBfOdcaDUPTj4MES2Ij1RJ21l84PPKGTXg1KZs6r0BkBVannkazStyrd1Z/om6n+ybKSpQDaKmwK6ZU= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=or9Y3EwL; arc=none smtp.client-ip=91.218.175.126 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=A2FhU4MuJrHd8/v0XQVjBT/Ve73V1hi6TGe39ZtD+us=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1791765224; v=1; x=1792370024; b=or9Y3EwLfCbjvJGrNCl2G4aCizBhU9MJuLoX5t79gwpwvErCBfaKmG8HMbrv3UVHg+lpuktH yb8E7AKr1wnPgk867zK7S1kDyMkt7a+l/uIpD6fEqKSe3CLmWnWAMkrQVd0R7png+gW3x2uxxmj d/99WBrEoSeOYIuQuF4DxuRI= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta11.migadu.com with ESMTPS id 7e21eccb68bbde6a; Mon, 12 Oct 2026 00:33:44 +0000 X-Mizu-Trace-ID: 7e21eccb68bbde6a X-Migadu-Flow: FLOW_OUT X-Cc: andrea.mayer@uniroma2.it, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, edumazet@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, liuhangbin@kylinos.cn X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <179162766399.434549.2048681726157385482@kernel.org>