Bug 1260916 - Install target test artifacts on Fennec. r?chmanchester draft
authorNick Alexander <nalexander@mozilla.com>
Wed, 30 Mar 2016 15:39:29 -0700
changeset 347097 f6348170b902de72a1d63a6c4030ff2a2c3e2e45
parent 346978 543ba2e092d2d4de86b1994a646ee75df5519c58
child 347098 3db70abe6818fbe0360406f20de899867232df02
push id14483
push usernalexander@mozilla.com
push dateFri, 01 Apr 2016 21:29:27 +0000
reviewerschmanchester
bugs1260916
milestone48.0a1
Bug 1260916 - Install target test artifacts on Fennec. r?chmanchester MozReview-Commit-ID: FJEJRIVPqfw
python/mozbuild/mozbuild/artifacts.py
--- a/python/mozbuild/mozbuild/artifacts.py
+++ b/python/mozbuild/mozbuild/artifacts.py
@@ -181,17 +181,17 @@ class ArtifactJob(object):
                     added_entry = True
 
         if not added_entry:
             raise ValueError('Archive format changed! No pattern from "{patterns}"'
                              'matched an archive path.'.format(
                                  patterns=LinuxArtifactJob.test_artifact_patterns))
 
 class AndroidArtifactJob(ArtifactJob):
-    def process_artifact(self, filename, processed_filename):
+    def process_package_artifact(self, filename, processed_filename):
         # Extract all .so files into the root, which will get copied into dist/bin.
         with JarWriter(file=processed_filename, optimize=False, compress_level=5) as writer:
             for f in JarReader(filename):
                 if not f.filename.endswith('.so') and \
                    not f.filename in ('platform.ini', 'application.ini'):
                     continue
 
                 basename = os.path.basename(f.filename)
@@ -383,19 +383,19 @@ class WinArtifactJob(ArtifactJob):
 
 # Keep the keys of this map in sync with the |mach artifact| --job
 # options.  The keys of this map correspond to entries at
 # https://tools.taskcluster.net/index/artifacts/#buildbot.branches.mozilla-central/buildbot.branches.mozilla-central.
 # The values correpsond to a pair of (<package regex>, <test archive regex>).
 JOB_DETAILS = {
     # 'android-api-9': (AndroidArtifactJob, 'public/build/fennec-(.*)\.android-arm\.apk'),
     'android-api-15': (AndroidArtifactJob, ('public/build/fennec-(.*)\.android-arm\.apk',
-                                            None)),
+                                            'public/build/fennec-(.*)\.common\.tests\.zip')),
     'android-x86': (AndroidArtifactJob, ('public/build/fennec-(.*)\.android-i386\.apk',
-                                         None)),
+                                         'public/build/fennec-(.*)\.common\.tests\.zip')),
     'linux': (LinuxArtifactJob, ('public/build/firefox-(.*)\.linux-i686\.tar\.bz2',
                                  'public/build/firefox-(.*)\.common\.tests\.zip')),
     'linux64': (LinuxArtifactJob, ('public/build/firefox-(.*)\.linux-x86_64\.tar\.bz2',
                                    'public/build/firefox-(.*)\.common\.tests\.zip')),
     'macosx64': (MacArtifactJob, ('public/build/firefox-(.*)\.mac\.dmg',
                                   'public/build/firefox-(.*)\.common\.tests\.zip')),
     'win32': (WinArtifactJob, ('public/build/firefox-(.*)\.win32.zip',
                                'public/build/firefox-(.*)\.common\.tests\.zip')),