Re: [PATCH net-next] selftests: drv-net: rss_input_xfrm: Check test prerequisites before running

Jakub Kicinski
2025-03-24T17:19:11Z

On Mon, 17 Mar 2025 14:31:49 +0200 Gal Pressman wrote:
> + try:
> + cmd("hash socat", host=cfg.remote)
> + except CmdExitFailure:
> + raise KsftSkipEx("socat not installed on remote")

I'm not familiar with "hash", would using

cfg.require_cmd("socat", remote=True)

work? IOW we do have a helper for this sort of checking.