Test suite robot syntax error fix
Error message:
Keyword 'BuiltIn.Should Be Equal As Strings'
got positional argument after named arguments.
Changes:
- Fix the dictionary access in test code. This is due to
robot old syntax vs newer version changes.
Tested:
- NA
Change-Id: I5bdfcb46e70e11c5dd77a8155d21c585bbeab0d2
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/code_update/host_code_update.robot b/extended/code_update/host_code_update.robot
index 418f87f..502a821 100644
--- a/extended/code_update/host_code_update.robot
+++ b/extended/code_update/host_code_update.robot
@@ -150,7 +150,7 @@
Set Host Software Property @{software_objects}[0] RequestedActivation
... ${REQUESTED_NONE}
${software_properties}= Get Host Software Property @{software_objects}[0]
- Should Be Equal As Strings &{software_properties}[RequestedActivation]
+ Should Be Equal As Strings ${software_properties}[RequestedActivation]
... ${REQUESTED_NONE}
diff --git a/lib/code_update_utils_serial.robot b/lib/code_update_utils_serial.robot
index 83fa77a..f29053f 100644
--- a/lib/code_update_utils_serial.robot
+++ b/lib/code_update_utils_serial.robot
@@ -23,7 +23,7 @@
# Verify code update was successful and 'Activation' state is 'Active'.
Wait For Activation State Change ${version_id} ${ACTIVATING}
${software_state}= Read Properties ${SOFTWARE_VERSION_URI}${version_id}
- Should Be Equal As Strings &{software_state}[Activation] ${ACTIVE}
+ Should Be Equal As Strings ${software_state}[Activation] ${ACTIVE}
Run Keyword If '${reboot}' OBMC Reboot (off) stack_mode=normal