2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

Merge pull request #1044 from caomengmeng/auditlog_update

Update tabprune auditlog related case
This commit is contained in:
tingtli
2016-05-06 14:15:43 +08:00

View File

@ -41,11 +41,15 @@ start:tabprune_i_auditlog
description:remove the records whose recid is less than the input recid number
cmd:chtab key=auditskipcmds site.value=
check:rc=0
cmd:lsdef -t site
cmd:lsdef -t site
cmd:lsdef -t site
cmd:sleep 3
cmd:n1=`lsdef -t auditlog|sed -n 2p|awk '{print $1}'`;tabprune auditlog -i $n1;n1=$(($n1-1));lsdef -t auditlog -l $n1
check:rc=0
check:output=~tabprune of auditlog complete
check:output=~Could not get xCAT object definitions
cmd:cmd:chtab key=auditskipcmds site.value=ALL
cmd:chtab key=auditskipcmds site.value=ALL
check:rc=0
end