mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-16 01:21:10 +00:00
Remove trailing spaces in file xCAT-test/autotest/testcase/makentp/cases0
This commit is contained in:
@@ -14,13 +14,13 @@ end
|
||||
|
||||
start:makentp_extntpserver_null
|
||||
descriptiop:test makentp with default value. extntpserver is set to blank
|
||||
cmd:lsdef -t site -o clustersite -i extntpservers -c >/tmp/extntpserver
|
||||
cmd:lsdef -t site -o clustersite -i extntpservers -c >/tmp/extntpserver
|
||||
check:rc==0
|
||||
cmd:chtab key=extntpservers site.value=""
|
||||
check:rc==0
|
||||
cmd:makentp
|
||||
check:rc==0
|
||||
check:output=~configuring management node: $$MN
|
||||
check:output=~configuring management node: $$MN
|
||||
cmd:makentp -V
|
||||
check:rc==0
|
||||
check:output=~configuring management node: $$MN
|
||||
@@ -33,7 +33,7 @@ cmd:extntpserver=`cat /tmp/ntpserver | awk -F = '{print \$2}'`;chtab key=extntps
|
||||
check:rc==0
|
||||
cmd:rm -rf /tmp/extntpserver
|
||||
cmd:makentp
|
||||
check:rc==0
|
||||
check:rc==0
|
||||
end
|
||||
|
||||
start:makentp_extntpserver_value
|
||||
@@ -54,7 +54,7 @@ check:rc==0
|
||||
check:output=~configuring management node: $$MN
|
||||
check:output=~checking if nptd is installed
|
||||
check:output=~backing up the ntp configuration file /etc/ntp.conf
|
||||
check:output=~ntp servers are: $$extntpserversip
|
||||
check:output=~ntp servers are: $$extntpserversip
|
||||
check:output=~stopping ntpserver
|
||||
check:output=~starting ntpserver
|
||||
check:output=~enabling ntpserver
|
||||
@@ -116,6 +116,6 @@ check:output=~starting ntpserver
|
||||
check:output=~enabling ntpserver
|
||||
cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "ubuntu" ]] || [[ "__GETNODEATTR($$CN,os)__" = "sles11.4" ]];then service ntp status;else service ntpd status; fi
|
||||
check:rc==0
|
||||
cmd:a=0;until ntpq -n -c peers | tail -n +2 | grep -q '^*'; do sleep 30;((a++));if [ $a -gt 30 ];then exit 1;fi done
|
||||
cmd:a=0;until ntpq -n -c peers | tail -n +2 | grep -q '^*'; do sleep 30;((a++));if [ $a -gt 30 ];then exit 1;fi done
|
||||
check:rc==0
|
||||
end
|
||||
|
Reference in New Issue
Block a user