* [PATCH nft] tests: py: correct the py utils path in the source tree
@ 2025-07-03 13:58 Zhongqiu Duan
2025-07-03 14:04 ` Pablo Neira Ayuso
0 siblings, 1 reply; 4+ messages in thread
From: Zhongqiu Duan @ 2025-07-03 13:58 UTC (permalink / raw)
To: coreteam, netfilter-devel
Cc: Pablo Neira Ayuso, Jozsef Kadlecsik, Florian Westphal,
Simon Horman, Jeremy Sowden, Zhongqiu Duan
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
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH nft] tests: py: correct the py utils path in the source tree 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 0 siblings, 1 reply; 4+ messages in thread From: Pablo Neira Ayuso @ 2025-07-03 14:04 UTC (permalink / raw) To: Zhongqiu Duan Cc: coreteam, netfilter-devel, Jozsef Kadlecsik, Florian Westphal, Simon Horman, Jeremy Sowden 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 > -- > 2.43.0 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH nft] tests: py: correct the py utils path in the source tree 2025-07-03 14:04 ` Pablo Neira Ayuso @ 2025-07-03 14:26 ` Phil Sutter 2025-07-04 2:36 ` Zhongqiu Duan 0 siblings, 1 reply; 4+ messages in thread From: Phil Sutter @ 2025-07-03 14:26 UTC (permalink / raw) To: Pablo Neira Ayuso Cc: Zhongqiu Duan, coreteam, netfilter-devel, Jozsef Kadlecsik, Florian Westphal, Simon Horman, Jeremy Sowden 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH nft] tests: py: correct the py utils path in the source tree 2025-07-03 14:26 ` Phil Sutter @ 2025-07-04 2:36 ` Zhongqiu Duan 0 siblings, 0 replies; 4+ messages in thread From: Zhongqiu Duan @ 2025-07-04 2:36 UTC (permalink / raw) To: Phil Sutter, Pablo Neira Ayuso, Zhongqiu Duan, coreteam, netfilter-devel, Jozsef Kadlecsik, Florian Westphal, Simon Horman, Jeremy Sowden On Thu, Jul 3, 2025 at 10:26 PM Phil Sutter <phil@nwl.cc> wrote: > > 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> > Hi Phil, Thanks for the detailed description. I'll use this information to post v2 later. Best regards, Zhongqiu > Thanks, Phil ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-04 2:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2025-07-04 2:36 ` Zhongqiu Duan
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.