diff --git a/xCAT-test/autotest/testcase/httpport/cases0 b/xCAT-test/autotest/testcase/httpport/cases0 index 8030ed03c..cc6b768d4 100644 --- a/xCAT-test/autotest/testcase/httpport/cases0 +++ b/xCAT-test/autotest/testcase/httpport/cases0 @@ -15,7 +15,7 @@ check:output =~ 8898 check:rc==0 cmd:if [[ "__GETNODEATTR($$CN,arch)__" = "ppc64le" ]]; then arch=ppc64; else arch=__GETNODEATTR($$CN,arch)__;fi; mknb $arch check:rc==0 -cmd:/opt/xcat/share/xcat/tools/autotest/testcase/httpport/check_wget_files.sh /tftpboot/pxelinux.cfg/p/ +cmd:/opt/xcat/share/xcat/tools/autotest/testcase/httpport/check_wget_files.sh /tftpboot/pxelinux.cfg/p/ 8898 check:rc==0 cmd:/opt/xcat/share/xcat/tools/autotest/testcase/httpport/change_http_port.sh 8898 80 cmd:netstat -nlp|grep -E "apache2|httpd" diff --git a/xCAT-test/autotest/testcase/httpport/check_wget_files.sh b/xCAT-test/autotest/testcase/httpport/check_wget_files.sh index d80489a42..6ffd76af7 100755 --- a/xCAT-test/autotest/testcase/httpport/check_wget_files.sh +++ b/xCAT-test/autotest/testcase/httpport/check_wget_files.sh @@ -6,20 +6,20 @@ files=$(ls $path) for filename in $files do echo "The file is $filename" - grep 8898 $path$filename + grep $2 $path$filename if [ $? != 0 ];then - echo "port 8898 does not exist" + echo "port $2 does not exist" exit 1; fi - links=$(grep 8898 $path$filename|awk -F " " '{print $2}') + links=$(grep $2 $path$filename|awk -F " " '{print $2}') for link in $links do wget $link if [ $? != 0 ];then - echo "wget failed" + echo "wget file $link failed" exit 1; else - echo "wget $link succeed" + echo "wget file $link succeed" fi done done