mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-23 04:41:08 +00:00
Add UT cases with this function
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
start:reventlog_resolved_parse_error1
|
||||
description: Do not pass in any logs to clear
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:reventlog $$CN resolved
|
||||
check:rc==1
|
||||
check:output=~Error: Usage error. Provide a comma separated
|
||||
end
|
||||
|
||||
start:reventlog_resolved_parse_error2
|
||||
description: Do not pass in any logs to clear, include = sign
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:reventlog $$CN resolved=
|
||||
check:rc==1
|
||||
check:output=~Error: Usage error. Provide a comma separated
|
||||
end
|
||||
|
||||
start:reventlog_resolved_parse_error3
|
||||
description: forgot the = sign
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:reventlog $$CN resolved 1,2,3
|
||||
check:rc==1
|
||||
check:output=~Error: Usage error. Provide a comma separated
|
||||
end
|
||||
|
||||
start:reventlog_resolved_parse_error4
|
||||
description: Pass in a negative number
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:reventlog $$CN resolved=-1
|
||||
check:rc==1
|
||||
check:output=~Error: Invalid ID=
|
||||
end
|
Reference in New Issue
Block a user