Re: [PATCH net-next, v7 2/2] selftests/net: Add selftest for IPv4 RTM_GETMULTICAST support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>The preferred way of handling this case is to define a new class, still
>derived from YnlFamily, setting the correct path in the constructor.

Thanks for the advice. Will fix it in the next patch version.

Thanks,
Yuyang


On Thu, Feb 6, 2025 at 11:23 PM Paolo Abeni <pabeni@xxxxxxxxxx> wrote:
>
> 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
>





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux