Re: [PATCH net-next] net: netconsole: selftests: Check if netdevsim is available

From: Simon Horman
Date: Mon Nov 11 2024 - 11:01:25 EST


On Fri, Nov 08, 2024 at 06:59:25AM -0800, Breno Leitao wrote:
> The netconsole selftest relies on the availability of the netdevsim module.
> To ensure the test can run correctly, we need to check if the netdevsim
> module is either loaded or built-in before proceeding.
>
> Update the netconsole selftest to check for the existence of
> the /sys/bus/netdevsim/new_device file before running the test. If the
> file is not found, the test is skipped with an explanation that the
> CONFIG_NETDEVSIM kernel config option may not be enabled.
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>