summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZhongqiu Duan <dzq.aishenghu0@gmail.com>2025-07-04 03:12:16 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2025-07-04 09:46:17 +0200
commit0f3965a38aecaf1fda66c2ce5dcf3b755d8191c6 (patch)
tree2d78fab81cf3c40081af27dd9a08ae330231b14e /tests
parentc0ff1e3420e0c9a6e86ba72a3c83fdfa26dfe987 (diff)
tests: py: re-enables nft-test.py to load the local nftables.pyHEADmaster
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. Fixes: ce443afc21455 ("py: move package source into src directory") Reviewed-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/py/nft-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py
index c7e55b0c..984f2b93 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