lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZhzbUBrJJ6-6l5Ql@Laptop-X1>
Date: Mon, 15 Apr 2024 15:46:24 +0800
From: Hangbin Liu <liuhangbin@...il.com>
To: Petr Machata <petrm@...dia.com>
Cc: "David S. Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
	netdev@...r.kernel.org, Ido Schimmel <idosch@...dia.com>,
	Shuah Khan <shuah@...nel.org>, linux-kselftest@...r.kernel.org,
	mlxsw@...dia.com, Benjamin Poirier <bpoirier@...dia.com>
Subject: Re: [PATCH net-next 03/10] selftests: forwarding: bail_on_lldpad()
 should SKIP

On Fri, Apr 12, 2024 at 07:03:06PM +0200, Petr Machata wrote:
> $ksft_skip is used to mark selftests that have tooling issues. The fact
> that LLDPad is running, but shouldn't, is one such issue. Therefore have
> bail_on_lldpad() bail with $ksft_skip.
> 
> Signed-off-by: Petr Machata <petrm@...dia.com>
> Reviewed-by: Benjamin Poirier <bpoirier@...dia.com>
> ---
>  tools/testing/selftests/net/forwarding/lib.sh | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh
> index 3cbbc2fd4d7d..7913c6ee418d 100644
> --- a/tools/testing/selftests/net/forwarding/lib.sh
> +++ b/tools/testing/selftests/net/forwarding/lib.sh
> @@ -2138,6 +2138,8 @@ bail_on_lldpad()
>  {
>  	local reason1="$1"; shift
>  	local reason2="$1"; shift
> +	local caller=${FUNCNAME[1]}
> +	local src=${BASH_SOURCE[1]}
>  
>  	if systemctl is-active --quiet lldpad; then
>  
> @@ -2158,7 +2160,8 @@ bail_on_lldpad()
>  				an environment variable ALLOW_LLDPAD to a
>  				non-empty string.
>  			EOF
> -			exit 1
> +			log_test_skip $src:$caller
> +			exit $EXIT_STATUS
>  		else
>  			return
>  		fi
> -- 
> 2.43.0
> 
Reviewed-by: Hangbin Liu <liuhangbin@...il.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ