From 0f3965a38aecaf1fda66c2ce5dcf3b755d8191c6 Mon Sep 17 00:00:00 2001 From: Zhongqiu Duan Date: Fri, 4 Jul 2025 03:12:16 +0000 Subject: [PATCH] tests: py: re-enables nft-test.py to load the local nftables.py 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 Signed-off-by: Zhongqiu Duan Signed-off-by: Pablo Neira Ayuso --- 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 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 -- 2.39.5