From: Phil Sutter <phil@nwl.cc>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Zhongqiu Duan <dzq.aishenghu0@gmail.com>,
coreteam@netfilter.org, netfilter-devel@vger.kernel.org,
Jozsef Kadlecsik <kadlec@netfilter.org>,
Florian Westphal <fw@strlen.de>, Simon Horman <horms@kernel.org>,
Jeremy Sowden <jeremy@azazel.net>
Subject: Re: [PATCH nft] tests: py: correct the py utils path in the source tree
Date: Thu, 3 Jul 2025 16:26:14 +0200 [thread overview]
Message-ID: <aGaTBm2-wSvSySEN@orbyte.nwl.cc> (raw)
In-Reply-To: <aGaN_9hnyR9AdOdT@calendula>
Hi,
On Thu, Jul 03, 2025 at 04:04:47PM +0200, Pablo Neira Ayuso wrote:
> What does it break here? Provide more info.
>
> On Thu, Jul 03, 2025 at 01:58:36PM +0000, Zhongqiu Duan wrote:
> > Fixes: ce443afc2145 ("py: move package source into src directory")
> > Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com>
> > ---
> > tests/py/nft-test.py | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py
> > index c7e55b0c3241..984f2b937a07 100755
> > --- a/tests/py/nft-test.py
> > +++ b/tests/py/nft-test.py
> > @@ -23,7 +23,7 @@ import traceback
> > import tempfile
> >
> > TESTS_PATH = os.path.dirname(os.path.abspath(__file__))
> > -sys.path.insert(0, os.path.join(TESTS_PATH, '../../py/'))
> > +sys.path.insert(0, os.path.join(TESTS_PATH, '../../py/src'))
> > os.environ['TZ'] = 'UTC-2'
> >
> > from nftables import Nftables
This is a needed follow-up of commit ce443afc21455 ("py: move
package source into src directory") from 2023. Since that change,
nft-test.py started using the host's nftables.py instead of the local
one. But since nft-test.py passes the local src/.libs/libnftables.so.1
as parameter when instantiating the Nftables class, we did nevertheless
use the local libnftables.
Duan Zhongqiu, could you please point out that it re-enables nft-test.py
to load the right nftables.py module in the description? Also, please
add:
Fixes: ce443afc21455 ("py: move package source into src directory")
Reviewed-by: Phil Sutter <phil@nwl.cc>
Thanks, Phil
next prev parent reply other threads:[~2025-07-03 14:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-03 13:58 [PATCH nft] tests: py: correct the py utils path in the source tree Zhongqiu Duan
2025-07-03 14:04 ` Pablo Neira Ayuso
2025-07-03 14:26 ` Phil Sutter [this message]
2025-07-04 2:36 ` Zhongqiu Duan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aGaTBm2-wSvSySEN@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=coreteam@netfilter.org \
--cc=dzq.aishenghu0@gmail.com \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=jeremy@azazel.net \
--cc=kadlec@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.