From 7502510fae0e67032fe43005f9a26af9dcfb5aca Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Thu, 7 Dec 2017 02:37:01 -0500 Subject: [PATCH 1/4] Add test cases for rflash regular usage against openbmc --- .../autotest/testcase/rflash/rflash_openbmc.0 | 375 ++++++++++++++++++ 1 file changed, 375 insertions(+) create mode 100644 xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 diff --git a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 new file mode 100644 index 000000000..52874f64e --- /dev/null +++ b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 @@ -0,0 +1,375 @@ +start:rflash_option_c_without_specify_noderange +description: basic usage check for option c. if without specify noderange for rflash command, should offer usage message +os:Linux +hcp:openbmc +cmd:rflash -c +check:output=~Usage: +cmd:rflash -c 1.tar +check:rc != 0 +check:output=~Error: Invalid nodes and/or groups in noderange +end + +start:rflash_option_l_without_specify_noderange +description: basic usage check for option l. if without specify noderange for rflash command, should offer usage message +os:Linux +hcp:openbmc +cmd:rflash -l +check:output=~Usage: +end + +start:rflash_option_a_without_specify_noderange +description: basic usage check for option a. if without specify noderange for rflash command, should offer usage message +os:Linux +hcp:openbmc +cmd:rflash -a +check:output=~Usage: +cmd:rflash -a 1.tar +check:rc != 0 +check:output=~Error: Invalid nodes and/or groups in noderange +end + +start:rflash_option_u_without_specify_noderange +description: basic usage check for option u. if without specify noderange for rflash command, should offer usage message +os:Linux +hcp:openbmc +cmd:rflash -u +check:output=~Usage: +cmd:rflash -u 1.tar +check:rc != 0 +check:output=~Error: Invalid nodes and/or groups in noderange +end + +start:rflash_option_d_without_specify_noderange +description: basic usage check for option d. if without specify noderange for rflash command, should offer usage message +os:Linux +hcp:openbmc +cmd:rflash -d +check:output=~Usage: +cmd:rflash -d 1234 +check:rc != 0 +check:output=~Error: Invalid nodes and/or groups in noderange +end + +start:rflash_without_option +description: basic usage check, if without option, should throw out a error +os:Linux +hcp:openbmc +cmd:rflash $$CN 1.tar +check:rc != 0 +check:output=~Error: Invalid option specified when a file is provided: +end + +start:rflash_unsupport_multiple_option_a_u +description: basic usage check. If specify multiple options a+u, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -a 1.tz -u +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_a_c +description: basic usage check. If specify multiple options a+c, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -a 1.tz -c +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_a_l +description: basic usage check. If specify multiple options a+l, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -a 1.tz -l +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_a_d +description: basic usage check. If specify multiple options a+d, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -a 1.tz -d +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_c_l +description: basic usage check. If specify multiple options c+l, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -c 1.tz -l +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_c_u +description: basic usage check. If specify multiple options c+u, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -c 1.tz -u +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_c_d +description: basic usage check. If specify multiple options c+d, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -c 1.tz -d +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_l_d +description: basic usage check. If specify multiple options l+d, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -l -d +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_l_u +description: basic usage check. If specify multiple options l+u, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -l -u +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_unsupport_multiple_option_u_d +description: basic usage check. If specify multiple options u+d, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -u -d +check:output=~Error: Multiple options are not supported +check:rc != 0 +end + +start:rflash_option_c_file_not_exist +description: basic usage check for option c. if the file does not exist, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -c /tmp/abc123.tz +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN -c /tmp/ +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN /tmp/abc123.tz -c +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN /tmp/ -c +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN 1.tar -c +check:output=~Error: Cannot access +check:rc != 0 +cmd:rflash $$CN -c /tmp/1.tar +check:output=~Error: Cannot access +check:rc != 0 +end + +start:rflash_option_c_with_multiple_values +description: basic usage check for option c. if there are multiple value assigned to c option, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -c /tmp/abc123.tz /tmp/abc124.tz +check:output=~Invalid option specified when an directory is provided +check:rc != 0 +cmd:rflash $$CN -c 1.tz 2.tz 3.tz +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1.tz 2.tz 3.tz -c +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1.tz -c 2.tz +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +end + +start:rflash_option_c_against_node +description: Make sure the -c option against node works +os:Linux +hcp:openbmc +cmd:rflash $$CN -c |tee /tmp/rflash_option_c.output +check:rc == 0 +cmd:grep -i ibm /tmp/rflash_option_c.output |grep -i 'HOST Firmware Product' | grep -i 'Active)\*' | wc -l +check:rc==0 +check:output=~1 +cmd:grep -i ibm /tmp/rflash_option_c.output |grep -i 'BMC Firmware Product' | grep -i 'Active)\*' | wc -l +check:rc==0 +check:output=~1 +cmd:rm -rf /tmp/rflash_option_c.output +check:rc==0 +end + +start:rflash_option_check_with_V_against_node +description: Make sure the --check option with V works +os:Linux +hcp:openbmc +cmd:rflash $$CN --check -V |tee /tmp/rflash_option_check_with_V.output +check:rc == 0 +cmd:grep -i ibm /tmp/rflash_option_check_with_V.output |grep -i 'HOST Firmware Product' | grep -i 'Active)\*' | wc -l +check:rc==0 +check:output=~1 +cmd:grep -i ibm /tmp/rflash_option_check_with_V.output |grep -i 'BMC Firmware Product' | grep -i 'Active)\*' | wc -l +check:rc==0 +check:output=~1 +cmd:rm -rf /tmp/rflash_option_check_with_V.output +check:rc==0 +end + + +start:rflash_option_l_with_value +description: basic usage check for option l. if there is value for l option, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -l /tmp/abc123.tz +check:output=~Error: Invalid option +check:rc != 0 +cmd: rflash $$CN /tmp/abc123.tz -l +check:output=~Error: Invalid option +check:rc != 0 +end + +start:rflash_option_l +description: Make sure the -l option works +os:Linux +hcp:openbmc +cmd:rflash $$CN -l |tee /tmp/rflash_option_l.output +check:rc == 0 +cmd:grep -i ' bmc ' /tmp/rflash_option_l.output | grep -i 'Active(\*)' | wc -l +check:rc==0 +check:output=~1 +cmd:grep -i ' host ' /tmp/rflash_option_l.output | grep -i 'Active(\*)' | wc -l +check:rc==0 +check:output=~1 +cmd:rm -rf /tmp/rflash_option_l.output +check:rc==0 +end + + +start:rflash_option_u_file_not_exist +description: basic usage check for option u. if the file does not exist, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -u /tmp/abc123.tz +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN -u /tmp/ +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN /tmp/abc123.tz -u +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN /tmp/ -u +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN 1.tar -u +check:output=~Error: Cannot access +check:rc != 0 +cmd:rflash $$CN -u /tmp/1.tar +check:output=~Error: Cannot access +check:rc != 0 +end + +start:rflash_option_u_with_multiple_values +description: basic usage check for option u. if there are multiple value assigned to u option, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -u /tmp/abc123.tz /tmp/abc124.tz +check:output=~Error: Invalid option specified when an directory is provided +check:rc != 0 +cmd:rflash $$CN -u 1.tz 2.tz 3.tz +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1.tz 2.tz 3.tz -u +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1.tz -u 2.tz +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +end + +start:rflash_option_a_file_not_exist +description: basic usage check for option a. if the file does not exist, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -a /tmp/abc123.tz +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN -a /tmp/ +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN /tmp/abc123.tz -a +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN /tmp/ -a +check:output=~Error: Invalid option +check:rc != 0 +cmd:rflash $$CN 1.tar -a +check:output=~Error: Cannot access +check:rc != 0 +cmd:rflash $$CN -a /tmp/1.tar +check:output=~Error: Cannot access +check:rc != 0 +end + +start:rflash_option_a_with_multiple_values +description: basic usage check for option a. if there are multiple value assigned to a option, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -a /tmp/abc123.tz /tmp/abc124.tz +check:output=~Error: Invalid option specified when an directory is provided +check:rc != 0 +cmd:rflash $$CN -a 1.tz 2.tz 3.tz +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1.tz 2.tz 3.tz -a +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1.tz -a 2.tz +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1234567 -a 2345678 +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +end + + +start:rflash_option_a_with_non_existent_id +description: basic usage check for option a. if active a non-existent firmware ID, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -a 1234567 +check:output=~Error: Invalid ID provided to activate +check:rc != 0 +end + +start:rflash_option_delete_with_multiple_values +description: basic usage check for option delete. if there are multiple value assigned to delete option, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN --delete 1234567 2345678 +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1234567 2345678 --delete +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +cmd:rflash $$CN 1234567 --delete 2345678 +check:output=~Error: More than one firmware specified is not supported +check:rc != 0 +end + +start:rflash_option_delete_with_non_existent_id +description: basic usage check for option --delete. if delete a non-existent firmware ID, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN --delete 1234567 +check:output=~Error: Invalid ID provided to delete +check:rc != 0 +end From 0fc2cbe5cf0117e3685a1c68d65542aa485b426c Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Thu, 7 Dec 2017 03:59:21 -0500 Subject: [PATCH 2/4] modify depending on xuwei's comment --- .../autotest/testcase/rflash/rflash_openbmc.0 | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 index 52874f64e..954e8dfa2 100644 --- a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 +++ b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 @@ -178,7 +178,7 @@ description: basic usage check for option c. if there are multiple value assigne os:Linux hcp:openbmc cmd:rflash $$CN -c /tmp/abc123.tz /tmp/abc124.tz -check:output=~Invalid option specified when an directory is provided +check:output=~Error: More than one firmware specified is not supported check:rc != 0 cmd:rflash $$CN -c 1.tz 2.tz 3.tz check:output=~Error: More than one firmware specified is not supported @@ -259,21 +259,27 @@ os:Linux hcp:openbmc cmd:rflash $$CN -u /tmp/abc123.tz check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN -u /tmp/ check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN /tmp/abc123.tz -u check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN /tmp/ -u check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN 1.tar -u check:output=~Error: Cannot access +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN -u /tmp/1.tar check:output=~Error: Cannot access +check:output!~Attempting to check:rc != 0 end @@ -282,16 +288,20 @@ description: basic usage check for option u. if there are multiple value assigne os:Linux hcp:openbmc cmd:rflash $$CN -u /tmp/abc123.tz /tmp/abc124.tz -check:output=~Error: Invalid option specified when an directory is provided +check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN -u 1.tz 2.tz 3.tz check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN 1.tz 2.tz 3.tz -u check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN 1.tz -u 2.tz check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 end @@ -301,21 +311,27 @@ os:Linux hcp:openbmc cmd:rflash $$CN -a /tmp/abc123.tz check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN -a /tmp/ check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN /tmp/abc123.tz -a check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN /tmp/ -a check:output=~Error: Invalid option +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN 1.tar -a check:output=~Error: Cannot access +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN -a /tmp/1.tar check:output=~Error: Cannot access +check:output!~Attempting to check:rc != 0 end @@ -324,19 +340,24 @@ description: basic usage check for option a. if there are multiple value assigne os:Linux hcp:openbmc cmd:rflash $$CN -a /tmp/abc123.tz /tmp/abc124.tz -check:output=~Error: Invalid option specified when an directory is provided +check:output=~Error: More than one foirmware specified is not supported +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN -a 1.tz 2.tz 3.tz check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN 1.tz 2.tz 3.tz -a check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN 1.tz -a 2.tz check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 cmd:rflash $$CN 1234567 -a 2345678 check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to check:rc != 0 end @@ -347,6 +368,7 @@ os:Linux hcp:openbmc cmd:rflash $$CN -a 1234567 check:output=~Error: Invalid ID provided to activate +check:output!~Attempting to activate check:rc != 0 end @@ -356,12 +378,15 @@ os:Linux hcp:openbmc cmd:rflash $$CN --delete 1234567 2345678 check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to delete check:rc != 0 cmd:rflash $$CN 1234567 2345678 --delete check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to delete check:rc != 0 cmd:rflash $$CN 1234567 --delete 2345678 check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to delete check:rc != 0 end @@ -371,5 +396,6 @@ os:Linux hcp:openbmc cmd:rflash $$CN --delete 1234567 check:output=~Error: Invalid ID provided to delete +check:output!~Attempting to delete check:rc != 0 end From 629286ac6e8cbb27a8df1dd8161c29a3ceae0c0e Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Thu, 7 Dec 2017 05:15:31 -0500 Subject: [PATCH 3/4] add 2 more cases for option d --- .../autotest/testcase/rflash/rflash_openbmc.0 | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 index 954e8dfa2..3f422a6df 100644 --- a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 +++ b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 @@ -399,3 +399,58 @@ check:output=~Error: Invalid ID provided to delete check:output!~Attempting to delete check:rc != 0 end + +start:rflash_option_d_with_multiple_values +description: basic usage check for option d. if there are multiple value assigned to d option, should throw out error message +os:Linux +hcp:openbmc +cmd:rflash $$CN -d /123/ /234/ +check:output=~Error: More than one +check:output!~Attempting to +check:rc != 0 +cmd:rflash $$CN /123/ /234/ -d +check:output=~Error: More than one +check:output!~Attempting to +check:rc != 0 +cmd:rflash $$CN /123/ -d /234/ +check:output=~Error: More than one +check:output!~Attempting to +check:rc != 0 +end + + +start:rflash_option_d_with_non_existent_dir +description: basic usage check for option -d. if try to oprate non-existent dir by d option, should throw out error message +os:Linux +hcp:openbmc +cmd:rm -rf /tmp/bogus123 +check:rc == 0 +cmd:rflash $$CN -d /tmp/bogus123 +check:output=~Error: Can't open directory +check:output!~Attempting to +check:rc != 0 +cmd:mkdir -p /tmp/bogus123 +check:rc == 0 +cmd:rflash $$CN /tmp/bogus123 -d +check:output =~Error: No BMC tar file found +check:output =~Error: No PNOR tar file found +check:output!~Attempting to +check:rc != 0 +cmd:touch obmc-phosphor-image-witherspoon.ubi.mtd.tar /tmp/bogus123 +check:rc == 0 +cmd:rflash $$CN -d /tmp/bogus123 +check::output =~Error: No BMC tar file found +check:output =~Error: No PNOR tar file found +check:output!~Attempting to +check:rc != 0 +cmd:touch witherspoon.pnor.squashfs.tar /tmp/bogus123 +check:rc == 0 +cmd:rflash $$CN -d /tmp/bogus123 +check:output =~Error: No BMC tar file found +check:output =~Error: No PNOR tar file found +check:output!~Attempting to +check:rc != 0 +cmd:rm -rf /tmp/bogus123 +check:rc == 0 +end + From f203aa27bb5114fb66f7055ab35dd975442b828c Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Fri, 8 Dec 2017 02:42:18 -0500 Subject: [PATCH 4/4] modify depending on comments --- .../autotest/testcase/rflash/rflash_openbmc.0 | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 index 3f422a6df..16993b52d 100644 --- a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 +++ b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 @@ -26,6 +26,9 @@ check:output=~Usage: cmd:rflash -a 1.tar check:rc != 0 check:output=~Error: Invalid nodes and/or groups in noderange +cmd:rflash -a 123abc +check:rc != 0 +check:output=~Error: Invalid nodes and/or groups in noderange end start:rflash_option_u_without_specify_noderange @@ -45,7 +48,10 @@ os:Linux hcp:openbmc cmd:rflash -d check:output=~Usage: -cmd:rflash -d 1234 +cmd:rflash -d /1234 +check:rc != 0 +check:output=~Error: Invalid nodes and/or groups in noderange +cmd:rflash --delete 1234abc check:rc != 0 check:output=~Error: Invalid nodes and/or groups in noderange end @@ -359,6 +365,10 @@ cmd:rflash $$CN 1234567 -a 2345678 check:output=~Error: More than one firmware specified is not supported check:output!~Attempting to check:rc != 0 +cmd:rflash $$CN -a 123 abc asdbas +check:output=~Error: More than one firmware specified is not supported +check:output!~Attempting to +check:rc != 0 end @@ -370,6 +380,10 @@ cmd:rflash $$CN -a 1234567 check:output=~Error: Invalid ID provided to activate check:output!~Attempting to activate check:rc != 0 +cmd:rflash $$CN -a 123abcm +check:output=~Error: Invalid ID provided to activate +check:output!~Attempting to activate +check:rc != 0 end start:rflash_option_delete_with_multiple_values @@ -398,6 +412,10 @@ cmd:rflash $$CN --delete 1234567 check:output=~Error: Invalid ID provided to delete check:output!~Attempting to delete check:rc != 0 +cmd:rflash $$CN --delete 123abcm +check:output=~Error: Invalid ID provided to delete +check:output!~Attempting to delete +check:rc != 0 end start:rflash_option_d_with_multiple_values @@ -439,7 +457,7 @@ check:rc != 0 cmd:touch obmc-phosphor-image-witherspoon.ubi.mtd.tar /tmp/bogus123 check:rc == 0 cmd:rflash $$CN -d /tmp/bogus123 -check::output =~Error: No BMC tar file found +check:output =~Error: No BMC tar file found check:output =~Error: No PNOR tar file found check:output!~Attempting to check:rc != 0 @@ -454,3 +472,15 @@ cmd:rm -rf /tmp/bogus123 check:rc == 0 end +start:rflash_usage +description:checke the usage of rflash for openbmc +os:Linux +hcp:openbmc +cmd:rflash -h +check:output =~Usage: +check:output =~OpenPOWER OpenBMC specific: +check:output =~ -d +check:output =~ image_id.+--delete +check:rc == 0 +end +