]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: Skip packetpath/nat_ftp in fake root env
authorPhil Sutter <phil@nwl.cc>
Fri, 1 Aug 2025 15:21:41 +0000 (17:21 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 11 Sep 2025 16:11:53 +0000 (18:11 +0200)
The script relies upon a call to modprobe which does not work in
fake root environments.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/shell/testcases/packetpath/nat_ftp

index c2fb3a1c8ebcd00ba76b87b223b264d01bf2500a..d0faf2ef59c571c02a6f79b404c30ee4eceb60d9 100755 (executable)
@@ -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()