mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 04:10:46 +00:00
Add descriptions for rflash UT cases
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
start:rflash_check
|
||||
description: Make sure the --check option works
|
||||
os:Linux
|
||||
mgt:openbmc
|
||||
cmd:rflash $$CN --check
|
||||
@ -9,36 +10,42 @@ check:rc==0
|
||||
end
|
||||
|
||||
start:rflash_invalid_activate
|
||||
description: Provide an invalid option for activte, file does not end in .tar
|
||||
cmd: rflash $$CN -a /tmp/abc123.tz
|
||||
check:rc==1
|
||||
check:output=~Error: Invalid option
|
||||
end
|
||||
|
||||
start:rflash_invalid_activate_and_delete
|
||||
description: Cannot specify -a and -d at the same time
|
||||
cmd: rflash $$CN -a 123 -d 123
|
||||
check:rc==1
|
||||
check:output=~Error: Multiple options specified is not supported
|
||||
end
|
||||
|
||||
start:rflash_invalid_id
|
||||
description: Passing an invalid ID to activate
|
||||
cmd: rflash $$CN -a 123
|
||||
check:rc==1
|
||||
check:output=~Error: Invalid ID provided to activate
|
||||
end
|
||||
|
||||
start:rflash_invalid_multiple_id_3
|
||||
description: Code does not currently support multiple IDs to activate
|
||||
cmd: rflash $$CN -a 123 abc asdbas
|
||||
check:rc==1
|
||||
check:output=~Error: More than one firmware specified is not supported
|
||||
end
|
||||
|
||||
start:rflash_invalid_multiple_id_2
|
||||
description: Code does not currently support multiple IDs to activate
|
||||
cmd: rflash $$CN -a asdbas 123
|
||||
check:rc==1
|
||||
check:output=~Error: More than one firmware specified is not supported
|
||||
end
|
||||
|
||||
start:rflash_invalid_node
|
||||
description: Activate a valid ID hash but forget to put in a node range
|
||||
cmd: rflash -a 221d9020
|
||||
check:rc==1
|
||||
check:output=~Error: Invalid nodes and/or groups in noderange: 221d9020
|
||||
|
Reference in New Issue
Block a user