[LTP] [PATCH v2 2/2] nfsstat02.sh: Force use of nested net namespace

Petr Vorel pvorel@suse.cz
Fri Oct 30 16:40:01 CET 2026


Use TST_NET_FORCE_NETNS=1 because test tests net namespace itself.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Changes in v2:
* Use TST_NET_FORCE_NETNS=1

 testcases/network/nfs/nfsstat01/nfsstat02.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/testcases/network/nfs/nfsstat01/nfsstat02.sh b/testcases/network/nfs/nfsstat01/nfsstat02.sh
index 75a1a01b5b..06b4dff855 100755
--- a/testcases/network/nfs/nfsstat01/nfsstat02.sh
+++ b/testcases/network/nfs/nfsstat01/nfsstat02.sh
@@ -3,6 +3,7 @@
 # Copyright (c) 2024 SUSE LLC <mdoucha@suse.cz>
 
 TST_TESTFUNC="do_test"
+TST_NET_FORCE_NETNS=1
 
 # PURPOSE:  Check that /proc/net/rpc/nfs exists in nested network namespaces
 # d47151b79e32 ("nfs: expose /proc/net/sunrpc/nfs in net namespaces")
@@ -19,8 +20,5 @@ do_test()
 	fi
 }
 
-# Force use of nested net namespace
-unset RHOST
-
 . nfs_lib.sh
 tst_run
-- 
2.56.0



More information about the ltp mailing list