2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

update according to comments

This commit is contained in:
litingt
2018-11-18 22:02:42 -05:00
parent 68ffc340dd
commit b4c6425ee3
2 changed files with 6 additions and 6 deletions

View File

@@ -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"

View File

@@ -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