diff --git a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 index 4115fbad5..911186417 100644 --- a/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 +++ b/xCAT-test/autotest/testcase/rflash/rflash_openbmc.0 @@ -349,23 +349,23 @@ check:output=~Error: Invalid firmware specified with check:output!~Attempting to check:rc != 0 cmd:rflash $$CN -a 1.tz 2.tz 3.tz -check:output=~Error: Invalid firmware specified with +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: Invalid firmware specified with +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: Invalid firmware specified with +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: Invalid firmware specified with +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: Invalid firmware specified with +check:output=~Error: More than one firmware specified is not supported check:output!~Attempting to check:rc != 0 end @@ -377,11 +377,9 @@ 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 -cmd:rflash $$CN -a 123abcm +cmd:rflash $$CN -a d123abc check:output=~Error: Invalid ID provided to activate -check:output!~Attempting to activate check:rc != 0 end @@ -390,15 +388,15 @@ description: basic usage check for option delete. if there are multiple value as os:Linux hcp:openbmc cmd:rflash $$CN --delete 1234567 2345678 -check:output=~Error: Invalid firmware specified with +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: Invalid firmware specified with +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: Invalid firmware specified with +check:output=~Error: More than one firmware specified is not supported check:output!~Attempting to delete check:rc != 0 end @@ -409,11 +407,9 @@ 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 -cmd:rflash $$CN --delete 123abcm +cmd:rflash $$CN --delete d123abc check:output=~Error: Invalid ID provided to delete -check:output!~Attempting to delete check:rc != 0 end diff --git a/xCAT-test/autotest/testcase/rspconfig/cases0 b/xCAT-test/autotest/testcase/rspconfig/cases0 index b6869b4c4..c5c0a8183 100644 --- a/xCAT-test/autotest/testcase/rspconfig/cases0 +++ b/xCAT-test/autotest/testcase/rspconfig/cases0 @@ -279,7 +279,7 @@ cmd:lsdef $$CN -i bmc -c check:rc == 0 cmd:rspconfig $$CN hostname=* check:rc == 0 -check:output =~$$CN: BMC hostname: bogus_bmc_hostname +check:output =~$$CN: BMC Hostname: bogus_bmc_hostname cmd:makehosts -d bogus_bmc_hostname check:rc == 0 cmd:rmdef bogus_bmc_hostname @@ -306,7 +306,7 @@ cmd:cat /tmp/rspconfig_get_hostname/working_hostname check:rc == 0 cmd:rspconfig $$CN hostname |tee /tmp/rspconfig_get_hostname/rspconfig_output check:rc == 0 -cmd:awk -F':' '/BMC hostname/ {print $3}' /tmp/rspconfig_get_hostname/rspconfig_output |sed s/\\s//g > /tmp/rspconfig_get_hostname/rspconfig_get_hostname +cmd: grep -i 'BMC Hostname' /tmp/rspconfig_get_hostname/rspconfig_output|awk -F':' '{print $3}' |sed s/\\s//g > /tmp/rspconfig_get_hostname/rspconfig_get_hostname check:rc == 0 cmd:cat /tmp/rspconfig_get_hostname/rspconfig_get_hostname cmd:diff /tmp/rspconfig_get_hostname/working_hostname /tmp/rspconfig_get_hostname/rspconfig_get_hostname @@ -344,7 +344,7 @@ cmd:cat /tmp/rspconfig_set_hostname/working_hostname check:rc == 0 cmd:a=$(cat /tmp/rspconfig_set_hostname/working_hostname); rspconfig $$CN hostname=test_$a |tee /tmp/rspconfig_set_hostname/rspconfig_output check:rc == 0 -cmd:awk -F':' '/BMC hostname/ {print $3}' /tmp/rspconfig_set_hostname/rspconfig_output |sed s/\\s//g > /tmp/rspconfig_set_hostname/rspconfig_get_hostname +cmd:grep -i 'BMC hostname' /tmp/rspconfig_set_hostname/rspconfig_output|awk -F':' '{print $3}' |sed s/\\s//g > /tmp/rspconfig_set_hostname/rspconfig_get_hostname check:rc == 0 cmd:ssh __GETNODEATTR($$CN,bmc)__ "hostname" | tee /tmp/rspconfig_set_hostname/new_working_hostname check:rc == 0 @@ -376,7 +376,6 @@ check:output =~Error: Invalid parameter for option admin_passwd check:rc != 0 cmd:rspconfig $$CN admin_passwd=; check:output =~Error: Invalid parameter for option admin_passwd -check:rc != 0 end start:rspconfig_set_admin_passwd_with_error_origin_password @@ -385,7 +384,7 @@ os:Linux hcp:openbmc cmd:rspconfig $$CN admin_passwd=bogus__GETNODEATTR($$CN,bmcpassword)__,cluster check:output =~Current BMC password is incorrect -check:rc != 0 +#check:rc != 0 end start:rspconfig_sshcfg_with_error_input