2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 18:20:27 +00:00
Files
xcat-core/xCAT-test/autotest/testcase/reventlog/cases0
robin2008 3745bac26d Update the testcase to cover the changes in #5119
using regular expression to cover the error/warn message which contains the server name
2018-05-26 11:44:44 +08:00

45 lines
1.1 KiB
Plaintext

start:reventlog_null
cmd:reventlog
check:rc==0
check:output=~Usage
end
start:reventlog_all
cmd:reventlog $$CN all
check:rc==0
check:output=~$$CN\s*:\s*.*\d\d/\d\d/\d\d\s*\S+|No attributes returned from the BMC
end
start:reventlog_clear
cmd:reventlog $$CN clear
check:rc==0
check:output=~$$CN\s*:\s*Logs cleared|SEL cleared
end
start:reventlog_numofentries
cmd:reventlog $$CN 5
check:rc==0
check:output=~$$CN\s*:\s*.*\d\d/\d\d/\d\d\s*\S+|$$CN: no SEL entries|Entry|No attributes returned from the BMC
end
start:reventlog_s_openbmc
description: For openbmc, reventlog has dropped option s
os:Linux
hcp:openbmc
cmd:reventlog $$CN 10 -s
check:output=~The -s option is not supported for OpenBMC
check:rc!=0
cmd:reventlog $$CN 10 -s 1
check:output=~The -s option is not supported for OpenBMC
check:rc!=0
cmd:reventlog $$CN -s all
check:output=~The -s option is not supported for OpenBMC|Only one option is supported at the same time for reventlog
check:rc!=0
cmd:reventlog $$CN -s
check:output=~Error: (\[.*?\]: )?Unsupported command
check:rc!=0
cmd:reventlog $$CN all aaa
check:output=~Error: (\[.*?\]: )?Only one option is supported at the same time
check:rc!=0
end