Add u-boot-dev field mode check in BMC reset teardown.

Resolves  openbmc/openbmc-test-automation#1225

Change-Id: I5712e0c6b82f55efb1b2eb43ec6613a2ee7d922c
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/test_bmc_reset_loop.robot b/extended/test_bmc_reset_loop.robot
index 42611d0..1928aec 100644
--- a/extended/test_bmc_reset_loop.robot
+++ b/extended/test_bmc_reset_loop.robot
@@ -9,6 +9,7 @@
 Resource        ../lib/state_manager.robot
 Resource        ../lib/boot_utils.robot
 Resource        ../lib/code_update_utils.robot
+Library         ../lib/bmc_ssh_utils.py
 
 Test Teardown   Test Teardown Execution
 Suite Setup     Suite Setup Execution
@@ -90,6 +91,15 @@
     Ping Host  ${OPENBMC_HOST}
     FFDC On Test Case Fail
 
+    # Example of the u-boot-env o/p:
+    # root@witherspoon:~# grep fieldmode /dev/mtd/u-boot-env
+    # fieldmode=true
+    # fieldmode=true
+    ${field_mode}=
+    ...  BMC Execute Command  grep fieldmode /dev/mtd/u-boot-env
+    Should Contain  "${field_mode[0]}"  fieldmode=true
+    ...  msg=u-boot-env shows "fieldmode" is not set to true.
+
 
 Validate Parameters
     [Documentation]  Validate PDU parameters.