[LTP] [PATCH v1] Add containers/share to PATH when call init_ltp_netspace
coolgw
coolgw1126@gmail.com
Thu Jan 5 11:37:11 CET 2023
When run single test case use command such as:
LTP_SHELL_API_TESTS=shell/net/tst_rhost_run.sh make test-shell
Error msg such as "ns_create: command not found" will popup, so
need update PATH before call ns_create etc..
---
testcases/lib/tst_net.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testcases/lib/tst_net.sh b/testcases/lib/tst_net.sh
index ceb45c98d..54c6dd1cc 100644
--- a/testcases/lib/tst_net.sh
+++ b/testcases/lib/tst_net.sh
@@ -128,6 +128,9 @@ tst_net_require_ipv6()
init_ltp_netspace()
{
+ PATH="$PWD/../../testcases/kernel/containers/share/:$PATH"
+ tst_res TINFO "PATH='$PATH'"
+
local pid
if [ ! -f /var/run/netns/ltp_ns -a -z "$LTP_NETNS" ]; then
--
2.35.3
More information about the ltp
mailing list