Test Association post reboot event association check
An obvious logical error check fix and some coding guidelines
cleanup.
Resolves openbmc/openbmc-test-automation#163
Change-Id: I4aa5dbf1c4448f803fe04e31886213cc32779676
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_association.robot b/tests/test_association.robot
index f4f8595..c30db87 100755
--- a/tests/test_association.robot
+++ b/tests/test_association.robot
@@ -206,22 +206,30 @@
[Documentation] ***GOOD PATH***
... This test case is to verify that error log association
... does not change after open bmc reboot.\n
- [Tags] bmcreboot
+ [Tags] bmcreboot Association_Unchanged_After_Reboot
${pre_reboot_log_uri} = Create a test log
- ${association_uri} = catenate SEPARATOR= ${pre_reboot_log_uri} /fru
- ${pre_reboot_association_content} = Read Attribute ${association_uri} endpoints
+ ${association_uri} =
+ ... catenate SEPARATOR= ${pre_reboot_log_uri} /fru
+ ${pre_reboot_association_content} =
+ ... Read Attribute ${association_uri} endpoints
${output}= Execute Command /sbin/reboot
Check If BMC is Up 5 min 10 sec
- ${post_reboot_association_content} = Read Attribute ${association_uri} endpoints
- Should Be Equal ${pre_reboot_association_content} ${pre_reboot_association_content}
+ ${post_reboot_association_content} =
+ ... Read Attribute ${association_uri} endpoints
+ Should Be Equal
+ ... ${post_reboot_association_content} ${pre_reboot_association_content}
- ${post_reboot_dimm3_event} = Read Attribute ${DIMM3_URI}/event endpoints
- Should Contain ${post_reboot_dimm3_event} ${pre_reboot_log_uri}
- ${post_reboot_dimm2_event} = Read Attribute ${DIMM2_URI}/event endpoints
- Should Contain ${post_reboot_dimm2_event} ${pre_reboot_log_uri}
+ ${post_reboot_dimm3_event} =
+ ... Read Attribute ${DIMM3_URI}/event endpoints
+ Should Contain
+ ... ${post_reboot_dimm3_event} ${pre_reboot_log_uri}
+ ${post_reboot_dimm2_event} =
+ ... Read Attribute ${DIMM2_URI}/event endpoints
+ Should Contain
+ ... ${post_reboot_dimm2_event} ${pre_reboot_log_uri}
*** Keywords ***