Bug 894746 - Properly truncate mach build terminal footer; r=ted
authorGregory Szorc <gps@mozilla.com>
Fri, 19 Jul 2013 13:40:00 -0700
changeset 151519 7ad49d2ecad5359bdc7bf551c0c00f6812f0c691
parent 151518 b7fbc6770e37b28bc42a79e0dc6c1f3d91d5669e
child 151573 6030c759a5029f935f010785c00cde8ae4a9c21c
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs894746
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 894746 - Properly truncate mach build terminal footer; r=ted DONTBUILD (NPOTB)
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -169,17 +169,17 @@ class BuildProgressFooter(object):
                     break
 
                 encoded = getattr(self._t, func)(arg)
 
                 write_pieces.append(encoded)
                 written += len(arg)
             else:
                 if written + len(part) > max_width:
-                    write_pieces.append(arg[0:max_width - written])
+                    write_pieces.append(part[0:max_width - written])
                     written += len(part)
                     break
 
                 write_pieces.append(part)
                 written += len(part)
 
         self._fh.write(''.join(write_pieces))
         self._fh.flush()