Bug 1286293 - Make mozharness action steps more machine parseable; r=gps,jlund
authorWilliam Lachance <wlachance@mozilla.com>
Tue, 12 Jul 2016 11:54:28 -0400
changeset 389882 3a98a8d388330fbf63bd5123bf02e0e37b6add98
parent 389881 8feb113aaba70ddc53811a9ffc2a1c597767128c
child 389883 528caba5bd200398aeb8fc13bb3bf4b09f254afa
push id23555
push userg.maone@informaction.com
push dateWed, 20 Jul 2016 09:15:43 +0000
reviewersgps, jlund
bugs1286293
milestone50.0a1
Bug 1286293 - Make mozharness action steps more machine parseable; r=gps,jlund MozReview-Commit-ID: D3FQ2SN14eA
testing/mozharness/mozharness/base/script.py
--- a/testing/mozharness/mozharness/base/script.py
+++ b/testing/mozharness/mozharness/base/script.py
@@ -1,22 +1,24 @@
+
 #!/usr/bin/env python
 # ***** BEGIN LICENSE BLOCK *****
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
 # You can obtain one at http://mozilla.org/MPL/2.0/.
 # ***** END LICENSE BLOCK *****
 """Generic script objects.
 
 script.py, along with config.py and log.py, represents the core of
 mozharness.
 """
 
 import codecs
 from contextlib import contextmanager
+import datetime
 import errno
 import gzip
 import inspect
 import os
 import platform
 import pprint
 import re
 import shutil
@@ -1861,19 +1863,18 @@ class BaseScript(ScriptMixin, LogMixin, 
             if value is not None:
                 log_config[key] = value
         if log_type == "multi":
             self.log_obj = MultiFileLogger(**log_config)
         else:
             self.log_obj = SimpleFileLogger(**log_config)
 
     def action_message(self, message):
-        self.info("#####")
-        self.info("##### %s" % message)
-        self.info("#####")
+        self.info("[mozharness: %sZ] %s" % (
+            datetime.datetime.utcnow().isoformat(' '), message))
 
     def summary(self):
         """Print out all the summary lines added via add_summary()
         throughout the script.
 
         I'd like to revisit how to do this in a prettier fashion.
         """
         self.action_message("%s summary:" % self.__class__.__name__)