Re: [PATCH net-next 3/7] selftests: net: add scaffolding for Netlink tests in Python

2024-04-02 Thread David Wei
On 2024-04-01 18:05, Jakub Kicinski wrote: > Add glue code for accessing the YNL library which lives under > tools/net and YAML spec files from under Documentation/. > Automatically figure out if tests are run in tree or not. > Since we'll want to use this library both from net and > drivers/net

Re: [PATCH net-next 3/7] selftests: net: add scaffolding for Netlink tests in Python

2024-04-02 Thread Jakub Kicinski
On Tue, 2 Apr 2024 17:53:41 +0200 Petr Machata wrote: > > +def ksft_ge(a, b, comment=""): > > +global KSFT_RESULT > > +if a < b: > > +KSFT_RESULT = False > > Hmm, instead of this global KSFT_RESULT business, have you considered > adding and raising an XsftFailEx, like for the

Re: [PATCH net-next 3/7] selftests: net: add scaffolding for Netlink tests in Python

2024-04-02 Thread Petr Machata
Jakub Kicinski writes: > Add glue code for accessing the YNL library which lives under > tools/net and YAML spec files from under Documentation/. > Automatically figure out if tests are run in tree or not. > Since we'll want to use this library both from net and > drivers/net test targets make

[PATCH net-next 3/7] selftests: net: add scaffolding for Netlink tests in Python

2024-04-01 Thread Jakub Kicinski
Add glue code for accessing the YNL library which lives under tools/net and YAML spec files from under Documentation/. Automatically figure out if tests are run in tree or not. Since we'll want to use this library both from net and drivers/net test targets make the library a target as well, and