Fixes to obmc_boot_test.py:

- 'Delete All Sessions' after each boot test to prevent too
  many open connections, i.e. "ConnectionErrors".
- 'Delete Error logs' after each boot test to prevent build-up
  of error logs.

Change-Id: I44b0e6e7145255786583136762598ac8c593e83d
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/obmc_boot_test.py b/lib/obmc_boot_test.py
index 551ddd8..ee8b442 100755
--- a/lib/obmc_boot_test.py
+++ b/lib/obmc_boot_test.py
@@ -630,6 +630,11 @@
         except:
             gp.print_error("Call to my_ffdc failed.\n")
 
+    # We need to purge error logs between boots or they build up.
+    cmd_buf = ["Delete Error logs"]
+    grp.rpissuing_keyword(cmd_buf, test_mode)
+    BuiltIn().run_keyword(*cmd_buf)
+
     boot_results.print_report()
     grp.rqprint_timen("Finished boot " + str(boot_count) + ".")
 
@@ -641,6 +646,11 @@
         grp.rprint_error_report(error_message)
         BuiltIn().fail(error_message)
 
+    # This should help prevent ConnectionErrors.
+    cmd_buf = ["Delete All Sessions"]
+    grp.rpissuing_keyword(cmd_buf, test_mode)
+    BuiltIn().run_keyword(*cmd_buf)
+
     return True
 
 ###############################################################################