From: mreed <mr...@us...> - 2006-09-11 18:21:57
|
Update of /cvsroot/ltp/ltp/testcases/network/stress/ssh In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv11552 Modified Files: ssh4-stress Log Message: Added a patch by Mitsuru Chinen that added the Absolute path to execute sshd daemon Index: ssh4-stress =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/network/stress/ssh/ssh4-stress,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ssh4-stress 24 Oct 2005 20:18:22 -0000 1.1 --- ssh4-stress 11 Sep 2006 18:21:53 -0000 1.2 *************** *** 147,150 **** --- 147,157 ---- trap do_cleanup 0 + # Get the sshd command with absolute path + SSHD=`which sshd` + if [ x"${SSHD}" = x ]; then + tst_resm TBROK "sshd daemon is not found" + exit $TST_TOTAL + fi + # Kill the tcp traffic server killall_tcp_traffic *************** *** 233,237 **** EOD ! sshd -f ${sshd_dir}/sshd_config if [ $? -ne 0 ]; then tst_resm TBROK "Failed to run sshd daemon." --- 240,245 ---- EOD ! ! SSHD -f ${sshd_dir}/sshd_config if [ $? -ne 0 ]; then tst_resm TBROK "Failed to run sshd daemon." |