Update test code based on latest robot directives
Changes:
- Non-local variable is not uppercase
- Variable with global scope defined outside
variables section
- Keyword name Should be equal as strings does
not follow case convention
- Exit For Loop If is deprecated since
Robot Framework version 5.*, use IF and BREAK instead
- Run Keyword If is deprecated since
Robot Framework version 5.*, use IF instead
Tested:
- NA
Change-Id: I41440993a37631307271fc05bca4ebb65ef6e205
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/pldm/test_pldm_bios.robot b/pldm/test_pldm_bios.robot
index 4778626..711f6e8 100755
--- a/pldm/test_pldm_bios.robot
+++ b/pldm/test_pldm_bios.robot
@@ -105,8 +105,9 @@
FOR ${i} IN @{attr_handles}
${cur_attr}= Pldmtool bios GetBIOSAttributeCurrentValueByHandle -a ${i}
@{attr_val_list}= Set Variable ${attr_val_data}[${i}]
- Run Keyword If '${cur_attr['CurrentValue']}' not in @{attr_val_list}
- ... Fail Invalid GetBIOSAttributeCurrentValueByHandle value found.
+ IF '${cur_attr['CurrentValue']}' not in @{attr_val_list}
+ Fail Invalid GetBIOSAttributeCurrentValueByHandle value found.
+ END
END