Re: [PATCH net-next] selftests: net: Skip test if IPv6 is not configured
From: Simon Horman
Date: Thu Jul 24 2025 - 16:13:41 EST
On Wed, Jul 23, 2025 at 10:35:06AM -0700, Breno Leitao wrote:
> Extend the `check_for_dependencies()` function in `lib_netcons.sh` to check
> whether IPv6 is enabled by verifying the existence of
> `/proc/net/if_inet6`. Having IPv6 is a now a dependency of netconsole
> tests. If the file does not exist, the script will skip the test with an
> appropriate message suggesting to verify if `CONFIG_IPV6` is enabled.
>
> This prevents the test to misbehave if IPv6 is not configured.
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>