2
0
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:
Victor Hu
2017-11-10 13:50:20 -05:00
parent de873ca26a
commit f0048944d9

View File

@ -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