From: Phil Sutter Date: Fri, 1 Aug 2025 15:21:41 +0000 (+0200) Subject: tests: shell: Skip packetpath/nat_ftp in fake root env X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=793a29ca5b7961d0f8d9c9c81ac0cd6be4183ba8;p=thirdparty%2Fnftables.git tests: shell: Skip packetpath/nat_ftp in fake root env The script relies upon a call to modprobe which does not work in fake root environments. Signed-off-by: Phil Sutter --- diff --git a/tests/shell/testcases/packetpath/nat_ftp b/tests/shell/testcases/packetpath/nat_ftp index c2fb3a1c..d0faf2ef 100755 --- a/tests/shell/testcases/packetpath/nat_ftp +++ b/tests/shell/testcases/packetpath/nat_ftp @@ -4,6 +4,9 @@ # NFT_TEST_REQUIRES(NFT_TEST_HAVE_curl) # NFT_TEST_REQUIRES(NFT_TEST_HAVE_vsftpd) +# modprobe does not work in fake root env +[ "$NFT_TEST_HAS_REALROOT" != y ] && exit 77 + . $NFT_TEST_LIBRARY_FILE cleanup()