Code update and AES pruning journal log

This needs to be in a strategic location. For now Code update and
AES BMC standby test are the candidate for pruning log.

Resolves openbmc/openbmc-test-automation#242

Change-Id: I443259b2587e83d4bf6852212283004b96b38bd8
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/code_update/update_bmc.robot b/extended/code_update/update_bmc.robot
index e6e18ea..89ff819 100644
--- a/extended/code_update/update_bmc.robot
+++ b/extended/code_update/update_bmc.robot
@@ -12,6 +12,7 @@
 ...                   On reboot this policy would ensure the BMC comes
 ...                   online and stays at HOST_POWERED_OFF state.
 ...                 - Issue poweroff
+...                 - Prune archived journal logs
 ...                 - Prepare for Update
 ...                 - Wait for BMC to come online clean
 ...                 - Wait for BMC_READY state
@@ -42,6 +43,7 @@
     Run Keyword if  '${status}' == '${False}'
     ...     Pass Execution   Same Driver version installed
 
+    Prune Journal Log
     Initiate Power Off
     Set Policy Setting   RESTORE_LAST_STATE
     Prepare For Update
diff --git a/extended/standby_bmc.robot b/extended/standby_bmc.robot
index 798e0de..efc40d0 100644
--- a/extended/standby_bmc.robot
+++ b/extended/standby_bmc.robot
@@ -8,6 +8,7 @@
 ...                  - BMC state is "BMC_READY" or "HOST_POWERED_OFF"
 ...                  - Boot policy is "RESTORE_LAST_STATE"
 ...               Power cycle system via PDU if specified
+...               Prune archived journal logs
 
 Resource          ../lib/boot/boot_resource_master.robot
 Resource          ../lib/utils.robot
@@ -47,6 +48,8 @@
     Run Keyword If  '${l_ready}' == '${False}'
     ...    Initiate Power Off
 
+    Prune Journal Log
+
     Run Keyword And Ignore Error
     ...   Update Policy Setting   RESTORE_LAST_STATE