From: Zhongqiu Duan Date: Fri, 4 Jul 2025 03:12:16 +0000 (+0000) Subject: tests: py: re-enables nft-test.py to load the local nftables.py X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fnftables.git 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 --- 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