Skip to contentSkip to conversation

Add more strict check for tst_require_cmds

PATCH In review coolgw 2 participants 2 messages Jan 12, 2023 – Jan 13, 2023

lore
Share & tools
lore

coolgw

author
#0 lore raw

PATCH 1/1 Add more strict check for tst_require_cmds

From: WEI GAO <[email protected]>

Add more strict tst_require_cmds check for init_ltp_netspace()

---
 testcases/lib/tst_net.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/lib/tst_net.sh +1 -1
index ceb45c98d..e6bb09d81 100644
@@ -131,7 +131,7 @@ init_ltp_netspace()
 	local pid
 
 	if [ ! -f /var/run/netns/ltp_ns -a -z "$LTP_NETNS" ]; then
-		tst_require_cmds ip
+		tst_require_cmds ip ns_create ns_exec ns_ifmove
 		tst_require_root
 
 		tst_require_drivers veth
Signature · 5 lines
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Wei,

I rewritten the commit message, add my tag Suggested-by and merged.

Thanks for your work!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp