From f0048944d9f56ab8b23b03c99298576f28005133 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Fri, 10 Nov 2017 13:50:20 -0500 Subject: [PATCH] Add descriptions for rflash UT cases --- xCAT-test/autotest/testcase/UT_openbmc/rflash_cases0 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-test/autotest/testcase/UT_openbmc/rflash_cases0 b/xCAT-test/autotest/testcase/UT_openbmc/rflash_cases0 index 4121cc43b..54569b5ff 100644 --- a/xCAT-test/autotest/testcase/UT_openbmc/rflash_cases0 +++ b/xCAT-test/autotest/testcase/UT_openbmc/rflash_cases0 @@ -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