Bug 1249857 - Do not print times when running mach from config.status; r?nalexander draft
authorGregory Szorc <gps@mozilla.com>
Fri, 19 Feb 2016 20:55:13 -0800
changeset 332696 070281e621acd5643b1f249ba593852700cf3101
parent 331960 d5daf10d3b74b04e8fa63c4e5429de8a0adf79f8
child 332697 ece8d6bfa0f290eeb3825c4217a7bdcfe064a6b2
push id11212
push usergszorc@mozilla.com
push dateSat, 20 Feb 2016 04:59:55 +0000
reviewersnalexander
bugs1249857
milestone47.0a1
Bug 1249857 - Do not print times when running mach from config.status; r?nalexander Currently, config.status runs `mach artifact install`. mach commands prefix output lines with elapsed time by default. When running from `mach build`, there will be 2 sets of times in `mach artifact install` output lines. When config.status is run directly, there will be no times printed except for `mach artifact install`. It is weird both ways. Fix it by not printing lines when running `mach artifact install` from config.status. MozReview-Commit-ID: GVinyI4Z0qr
python/mozbuild/mozbuild/config_status.py
--- a/python/mozbuild/mozbuild/config_status.py
+++ b/python/mozbuild/mozbuild/config_status.py
@@ -194,9 +194,14 @@ def config_status(topobjdir='.', topsrcd
     # Advertise Eclipse if it is appropriate.
     if MachCommandConditions.is_android(env):
         if 'AndroidEclipse' not in options.backend:
             print(ANDROID_IDE_ADVERTISEMENT)
 
     if env.substs.get('MOZ_ARTIFACT_BUILDS', False):
         # Execute |mach artifact install| from the top source directory.
         os.chdir(topsrcdir)
-        return subprocess.check_call([sys.executable, os.path.join(topsrcdir, 'mach'), 'artifact', 'install'])
+        return subprocess.check_call([
+            sys.executable,
+            os.path.join(topsrcdir, 'mach'),
+            '--log-no-times',
+            'artifact',
+            'install'])