From d7799b8c1a4a3f2eceafc4af1c2b29a035e536f7 Mon Sep 17 00:00:00 2001 From: Wai Yee Wong Date: Thu, 29 Apr 2021 17:49:58 -0400 Subject: [PATCH] Some changes to cases0 were missed in the previous commit --- xCAT-test/autotest/testcase/makentp/cases0 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/xCAT-test/autotest/testcase/makentp/cases0 b/xCAT-test/autotest/testcase/makentp/cases0 index f63124129..d956dda70 100644 --- a/xCAT-test/autotest/testcase/makentp/cases0 +++ b/xCAT-test/autotest/testcase/makentp/cases0 @@ -46,6 +46,8 @@ cmd:lsdef -t site -o clustersite -i extntpservers -c >/tmp/extntpserver check:rc==0 cmd:chtab key=extntpservers site.value="$$extntpserversip" check:rc==0 +cmd:date | awk '{print $6}' > /tmp/abc123 +check:rc==0 cmd:date -s 20000101 check:rc==0 cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock -w;else hwclock -w ; fi @@ -58,14 +60,18 @@ check:rc==0 check:output=~configuring management node: $$MN check:output=~Calling ... /install/postscripts/setupntp check:output=~Daemon chronyd configured -cmd:date -check:output=~$$DATE -cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock ;else hwclock ; fi +cmd:Time=`cat /tmp/abc123 | awk '{print $1}'`;date | grep $Time check:rc==0 -check:output=~$$DATE +check:output=~\d +cmd:Time=`cat /tmp/abc123 | awk '{print $1}'`;if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock | grep $Time;else hwclock | grep $Time ; fi +check:rc==0 +check:output=~\d cmd:extntpserver=`cat /tmp/extntpserver | awk -F = '{print \$2}'`;chtab key=extntpservers site.value=$extntpserver check:rc==0 cmd:rm -rf /tmp/extntpserver +check:rc==0 +cmd:rm /tmp/abc123 +check:rc==0 end start:updatenode_computenode_P_setupntp