Add new plug-in environment variables.

This commit adds two new variables in obmc_boot_test.py
for use by 'boot time performance' plug-in program.

Change-Id: I0306ac28c5b7c0ef57077ecdb57d434cb21d4268
Signed-off-by: Sunil M <sunilmam@us.ibm.com>
diff --git a/lib/obmc_boot_test.py b/lib/obmc_boot_test.py
index 07e9f77..265d7ee 100755
--- a/lib/obmc_boot_test.py
+++ b/lib/obmc_boot_test.py
@@ -61,6 +61,8 @@
 
 LOG_LEVEL = BuiltIn().get_variable_value("${LOG_LEVEL}")
 ffdc_prefix = ""
+boot_start_time = ""
+boot_end_time = ""
 
 
 ###############################################################################
@@ -260,12 +262,15 @@
     BuiltIn().set_global_variable("${boot_fail}", boot_fail)
     BuiltIn().set_global_variable("${boot_success}", boot_success)
     BuiltIn().set_global_variable("${ffdc_prefix}", ffdc_prefix)
+    BuiltIn().set_global_variable("${boot_start_time}", boot_start_time)
+    BuiltIn().set_global_variable("${boot_end_time}", boot_end_time)
 
     # For each program parameter, set the corresponding AUTOBOOT_ environment
     # variable value.  Also, set an AUTOBOOT_ environment variable for every
     # element in additional_values.
     additional_values = ["boot_type_desc", "boot_success", "boot_pass",
-                         "boot_fail", "test_really_running", "ffdc_prefix"]
+                         "boot_fail", "test_really_running", "ffdc_prefix",
+                         "boot_start_time", "boot_end_time"]
 
     plug_in_vars = additional_values
 
@@ -703,8 +708,14 @@
     """
 
     global last_ten
+    global boot_start_time
 
     doing_msg = gp.sprint_timen("Doing \"" + boot_keyword + "\".")
+
+    # Set boot_start_time for use by plug-ins.
+    boot_start_time = doing_msg[1:33]
+    gp.qprint_var(boot_start_time)
+
     gp.qprint(doing_msg)
 
     last_ten.append(doing_msg)
@@ -801,6 +812,7 @@
     global state
     global next_boot
     global boot_success
+    global boot_end_time
 
     gp.qprintn()
 
@@ -821,10 +833,18 @@
     gp.qprintn()
     if boot_status == "PASS":
         boot_success = 1
-        gp.qprint_timen("BOOT_SUCCESS: \"" + next_boot + "\" succeeded.")
+        completion_msg = gp.sprint_time("BOOT_SUCCESS: \"" + next_boot +
+                                        "\" succeeded.")
     else:
         boot_success = 0
-        gp.qprint_timen("BOOT_FAILED: \"" + next_boot + "\" failed.")
+        completion_msg = gp.sprint_time("BOOT_FAILED: \"" + next_boot +
+                                        "\" failed.")
+
+    # Set boot_end_time for use by plug-ins.
+    boot_end_time = completion_msg[1:33]
+    gp.qprint_var(boot_end_time)
+
+    gp.qprint(completion_msg)
 
     boot_results.update(next_boot, boot_status)