From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=160.80.4.32 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796010490; b=xAP57o6UOTNGVlGqO+4Qx/7lD/nR4Mp8WQwMZpn4XOr5IYLaHLunDjaak02XUPrLfRHh u3sV5+jNk4KOwHk7Y8hJ1SUR7KVj2rZuALzFWo6Q/bamFSY3tjeh5ndLmm1d8ZqkwhgK2 OD4K4WLYb7z+NMD/guwnRDTlJsfqVaTKYzDv89FYP7kXFZ87PvYh48LjrjBBCTZf4xJC5 jYz10lw+RR3L7TBYIGAZGRUWW2Ol5kecslzyU8VOIONwcpxlxR4Woa/yc4qAm5grohlfv Sk+cooUifWhoO+ZkkP7GwM/Ea+AYA86/ngdHj2BYds+zAaJZ7+8yGCF7Z14gIV53+/w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796010490; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:Date: From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer: Mime-Version:Content-Type:Content-Transfer-Encoding:X-Virus-Scanned: X-Virus-Status; bh=OCzZlFumJzIIhZkmHiSyuWEg42H69InsqQNQdYBxePo=; b=LctzjWZRQuwB7XVOI23TdVysPS2/FKUG0O8PlN3iEMyLyZJ2hHEzFFIWK5L7t7MEOywa zGEg63OBfptyRdyULQZHw11CGrCqrmCKZ6MrGCeTt1bteAFgnbelFBNHnLetHqwECSmMq jon+5xnJWiwQslf1iNMhyUMLaTncdp3CHbQrY4AnY5TNVMrdBDQdyrnEO3OzT+QO6mokG FZBDlArNkrjc3eoJHKfpZ993cdPE+U3O0k/NTYZrWmeoGV0BM7/2jQbOPdW1a0us/hxpL AQUw7Ji+HMSiX9KsOQBTmnSQUKXjO4I4PMlIepMggQngiuuxjYNV8VameQxh6y/oiVw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=uniroma2.it; spf=pass smtp.mailfrom=uniroma2.it; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=BcM1dmlo; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b="M/s+xLpL"; arc=none smtp.remote-ip=160.80.4.32 Received: from smtp.uniroma2.it (smtp-2015.uniroma2.it [160.80.4.32]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADED0606A338; Mon, 30 Nov 2026 03:48:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ADED0606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniroma2.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniroma2.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=BcM1dmlo; dkim=pass (2048-bit key, unprotected) header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=M/s+xLpL Received: from smtpauth-2019-1.uniroma2.it (smtpauth.uniroma2.it [160.80.5.46]) by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id 6AU3lJsY003400; Mon, 30 Nov 2026 04:47:24 +0100 Received: from lubuntu-18.04 (unknown [160.80.103.126]) by smtpauth-2019-1.uniroma2.it (Postfix) with ESMTPSA id B23811206DD; Mon, 30 Nov 2026 04:47:14 +0100 (CET) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=uniroma2.it; s=ed201904; t=1796010435; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OCzZlFumJzIIhZkmHiSyuWEg42H69InsqQNQdYBxePo=; b=BcM1dmloLhRlpNosWaR39bW0BqiJCEayAJxS2rnLQ2YjY2LIw2SS3miXphSJlwcL7sWV1N Wk2H1//PWt7bgfAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma2.it; s=rsa201904; t=1796010435; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OCzZlFumJzIIhZkmHiSyuWEg42H69InsqQNQdYBxePo=; b=M/s+xLpLu6RTs5KfqMR9UcsMGpMbrNc2VOy8iRyeG5scpDhxjc453mcnFQvI6xm59GXoQ3 e2Hg3xbwGV0qq1iZ4PuP8yzBqcRhYI78TxcBroHCauvV7GnuHSoes1C182rccsMQBJeokO 8wXszRv1qATtCKr9HZwHw4eZml3DFmLf/EhVwf48dt94qazpo0ONxjZkksaVBpQeaLa3Ai RXpl7Pvw07Ma3mfhLntfMG4LXFNSFRLmLpcNVnXgJY8P5B3pxTfH+Zgkd7djnqdRNIROo9 lEDZT4P56SibEHnIMiP7FecdKz49R8hga7o13q/p93Hu86d4WVEYoMjdGPYEzg== Date: Mon, 30 Nov 2026 04:47:14 +0100 From: Andrea Mayer To: Hangbin Liu Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Hangbin Liu , Stefano Salsano , Andrea Mayer , Andrea Mayer Subject: Re: [PATCH net-next v5 3/5] selftests: seg6: move SRv6 End PSP setup into its own helper Message-Id: <20261130044714.e6c92e9a6b9999a18475c161@uniroma2.it> In-Reply-To: <20261126-srv6_flavors_endx-v5-3-4d8232eec404@kylinos.cn> References: <20261126-srv6_flavors_endx-v5-0-4d8232eec404@kylinos.cn> <20261126-srv6_flavors_endx-v5-3-4d8232eec404@kylinos.cn> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.100.0 at smtp-2015 X-Virus-Status: Clean On Thu, 26 Nov 2026 14:27:25 +0800 Hangbin Liu wrote: Hi Hangbin, > From: Hangbin Liu > > 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 > [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