Subject: Re: [PATCH net-next 2/4] selftests: drv-net: add a way to wait for a local process

From: Jakub Kicinski <[email-masked]>
Date: Tue, 18 Feb 2025 13:21:22 -0800

On Tue, 18 Feb 2025 13:10:14 -0800 Stanislav Fomichev wrote:
> > +	env_str = getenv("KSFT_READY_FD");
> > +	if (!env_str)
> > +		return;
> > +
> > +	fd = atoi(env_str);
> > +	if (!fd)
> > +		return;  
> 
> optional nit: should these fail with error() instead of silent return?
> Should guarantee that the caller is doing everything correctly.
> (passing wait_init vs waiting for a port)

My thinking was that you may want to run the helper manually during
development and then the env variable won't be set.

Given that we currently don't expose the stdout/stderr if wait fails
adding a print seemed a little performative..  We need to go back
and provide better support for debug (/verbose output) at some stage.