Bug 1232887 - "make package MOZ_PKG_PRETTYNAMES=1" is busted. r=glandium a=ritu
authorRail Aliiev <rail@mozilla.com>
Tue, 15 Dec 2015 23:23:18 -0500
changeset 310482 20e69b35c57e0254770ee706ae72105545a00157
parent 310481 4951523aa064fe188edc1b6c100af1033eb769ba
child 310483 7d7176ca2470eae724d26768de84af924b921fc6
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, ritu
bugs1232887
milestone45.0a2
Bug 1232887 - "make package MOZ_PKG_PRETTYNAMES=1" is busted. r=glandium a=ritu
python/mozbuild/mozbuild/action/test_archive.py
--- a/python/mozbuild/mozbuild/action/test_archive.py
+++ b/python/mozbuild/mozbuild/action/test_archive.py
@@ -11,16 +11,17 @@
 from __future__ import absolute_import, print_function, unicode_literals
 
 import argparse
 import itertools
 import os
 import sys
 import time
 
+from mozbuild.util import ensureParentDir
 from mozpack.files import FileFinder
 from mozpack.mozjar import JarWriter
 import mozpack.path as mozpath
 
 import buildconfig
 
 STAGE = mozpath.join(buildconfig.topobjdir, 'dist', 'test-stage')
 
@@ -311,16 +312,17 @@ def main(argv):
 
     # Adjust reftest entries only if processing reftests (because it is
     # unnecessary overhead otherwise).
     if args.archive == 'reftest':
         insert_reftest_entries(ARCHIVE_FILES['reftest'])
 
     file_count = 0
     t_start = time.time()
+    ensureParentDir(args.outputfile)
     with open(args.outputfile, 'wb') as fh:
         # Experimentation revealed that level 5 is significantly faster and has
         # marginally larger sizes than higher values and is the sweet spot
         # for optimal compression. Read the detailed commit message that
         # introduced this for raw numbers.
         with JarWriter(fileobj=fh, optimize=False, compress_level=5) as writer:
             res = find_files(args.archive)
             for p, f in res: