Subject: Re: [PATCH net-next v4 6/8] selftests: drv-net: refactor devmem command builders into lib module

From: Jakub Kicinski <[email-masked]>
Date: Wed, 13 May 2026 19:21:33 -0700

On Mon, 11 May 2026 18:18:00 -0700 Bobby Eshleman wrote:
>  tools/testing/selftests/drivers/net/hw/devmem.py   |  77 ++------
>  .../selftests/drivers/net/hw/lib/py/devmem.py      | 218 +++++++++++++++++++++

If the reuse is in the same dir I think you can create

tools/testing/selftests/drivers/net/hw/devmem_lib.py

and import:

from devmem_lib import bla

I _think_ that should "just work" ?

The lib/ is meant for things shared between targets.

Also I think you missed adding the new file to Makefiles ?
It needs to be under TEST_FILES for building tarballs