On 2/4/25 10:19 AM, Yuyang Huang wrote: > diff --git a/tools/testing/selftests/net/lib/py/ynl.py b/tools/testing/selftests/net/lib/py/ynl.py > index ad1e36baee2a..7b1e29467e46 100644 > --- a/tools/testing/selftests/net/lib/py/ynl.py > +++ b/tools/testing/selftests/net/lib/py/ynl.py > @@ -38,8 +38,8 @@ class EthtoolFamily(YnlFamily): > > > class RtnlFamily(YnlFamily): > - def __init__(self, recv_size=0): > - super().__init__((SPEC_PATH / Path('rt_link.yaml')).as_posix(), > + def __init__(self, recv_size=0, spec='rt_link.yaml'): > + super().__init__((SPEC_PATH / Path(spec)).as_posix(), > schema='', recv_size=recv_size) The preferred way of handling this case is to define a new class, still derived from YnlFamily, setting the correct path in the constructor. /P