From: Mitsuru C. <mi...@jp...> - 2005-08-19 14:56:26
|
Hi all, I posted this patch in June. As it was not included to the latest source, I resend it. If my patch is something wrong, please let me know. --- At dhcpd test, dhcpd_tests.sh checks dhcpd is running or not like this: ps -ef | grep dhcpd This command line returns TRUE even if dhcpd isn't running because the test shell script `dhcpd_tetss.sh' itself is matched. I propose to change this to: ps -ef | grep "dhcpd[[:blank:]]" Thank you, -- Mitsuru Chinen <mi...@jp...> diff -uprN ltp-full-20050804.orig/testcases/network/dhcpd/dhcpd_tests.sh ltp-full-20050804/testcases/network/dhcpd/dhcpd_tests.sh --- ltp-full-20050804.orig/testcases/network/dhcpd/dhcpd_tests.sh 2005-08-05 05:33:05.000000000 +0900 +++ ltp-full-20050804/testcases/network/dhcpd/dhcpd_tests.sh 2005-08-19 23:22:11.022027608 +0900 @@ -102,7 +102,7 @@ init() return $RC fi - grep "dhcpd" $LTPTMP/tst_dhcpd.out &>$LTPTMP/tst_dhcpd.err || RC=$? + grep "dhcpd[[:blank:]]" $LTPTMP/tst_dhcpd.out &>$LTPTMP/tst_dhcpd.err || RC=$? if [ $RC -eq 0 ] then tst_resm TPASS "INIT: dhcpd is already running. Declaring success" |