[LTP] [PATCH 1/1] network: load test_net.sh after getopts

Petr Vorel petr.vorel@gmail.com
Mon Nov 7 13:19:52 CET 2016


We shouldn't ask rsh/ssh password or require having set ssh pub keys
just for displaying help.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testscripts/network.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testscripts/network.sh b/testscripts/network.sh
index 66bacef..fea2f68 100755
--- a/testscripts/network.sh
+++ b/testscripts/network.sh
@@ -11,8 +11,6 @@ if [ $? -eq 0 ]; then
 	export LTPROOT=${PWD}
 fi
 
-. test_net.sh
-
 export TMPDIR=/tmp/netpan-$$
 mkdir -p $TMPDIR
 CMDFILE=${TMPDIR}/network.tests
@@ -81,6 +79,8 @@ if [ "$OPTIND" -eq 1 ]; then
 	exit 1
 fi
 
+. test_net.sh
+
 rm -f $CMDFILE
 
 for t in $TEST_CASES; do
-- 
2.10.2



More information about the ltp mailing list