linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.28k stars 999 forks source link

Add containers/share to PATH when call init_ltp_netspace #1006

Closed coolgw closed 1 year ago

coolgw commented 1 year ago

Fix following scenario: ns_xxx command not found error

LTP_SHELL_API_TESTS=shell/net/tst_rhost_run.sh make test-shell make -C "lib" -f "/home/ltp/lib/Makefile" all make[1]: Entering directory '/home/ltp/lib' make[2]: Nothing to be done for 'all'. make[2]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/ltp/lib'

echo /home/ltp

echo -s

set -e; /home/ltp/lib/newlib_tests/runtest.sh -b /home/ltp -s runtest TINFO: PATH='/home/ltp/testcases/lib:/home/ltp/lib/newlib_tests/../../testcases/lib/:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin' runtest TINFO: KCONFIG_PATH='config02' runtest TINFO: === Run SHELL tests === runtest TINFO: * shell/net/tst_rhost_run.sh tst_rhost_run 1 TINFO: tst_rhost_run: cmd: [ -f /proc/net/if_inet6 ] tst_rhost_run 1 TINFO: NETNS: sh -c " [ -f /proc/net/if_inet6 ] || echo RTERR" 2>&1 /bin/sh: line 1: ns_create: command not found <=== tst_rhost_run 1 TBROK: ns_create net,mnt failed tst_rhost_run 1 TINFO: AppArmor enabled, this may affect test results tst_rhost_run 1 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root) tst_rhost_run 1 TINFO: loaded AppArmor profiles: none

pevik commented 1 year ago

Closed, as replaced by patches in mailing list.