Variable to enable or disable in CT run.

Currently CT is running with field mode enabled by default, however
CI on the public master still needs to run with disabled.

Added:
    - Variable "FIELD_MODE".

Resolves  openbmc/openbmc-test-automation#1166

Change-Id: Ie58350e72e56c195b52a9eabb3f43d1f202f59e2
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/resource.txt b/lib/resource.txt
index a9ad430..ac094ae 100755
--- a/lib/resource.txt
+++ b/lib/resource.txt
@@ -73,6 +73,9 @@
 # the machine already has that version on it, the update should be skipped.
 ${LAST_KNOWN_GOOD_VERSION}  ${EMPTY}
 
+# By default field mode is disabled.
+${FIELD_MODE}               ${False}
+
 *** Keywords ***
 Get Inventory Schema
     [Arguments]    ${machine}
diff --git a/tests/__init__.robot b/tests/__init__.robot
index 1bd53a2..62d154f 100644
--- a/tests/__init__.robot
+++ b/tests/__init__.robot
@@ -25,7 +25,8 @@
     Run Keyword And Ignore Error  Enable Core Dump On BMC
     Run Keyword And Ignore Error  Set Boot Defaults
     Set BMC Power Policy  ${ALWAYS_POWER_OFF}
-    Enable Field Mode And Verify Unmount
+    Run Keyword If  ${FIELD_MODE} == ${True}
+    ...  Enable Field Mode And Verify Unmount
 
 Set Boot Defaults
     Set Control Boot Mode  ${CONTROL_HOST_URI}/boot  ${BOOT_MODE_REGULAR}