From 978b39e16d082c17027d280bf2a8dcb4c7bd6084 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 24 Jan 2018 22:48:50 +0100 Subject: [PATCH] Bug 1431379 - Package lcov rewriter and its dependencies in the common test archive. r=chmanchester --- python/mozbuild/mozbuild/action/test_archive.py | 10 ++++++++++ testing/mozharness/configs/unittests/linux_unittest.py | 2 ++ .../configs/unittests/win_taskcluster_unittest.py | 2 ++ testing/mozharness/configs/unittests/win_unittest.py | 2 ++ .../mozharness/mozilla/testing/firefox_ui_tests.py | 2 ++ testing/mozharness/scripts/web_platform_tests.py | 4 +++- 6 files changed, 21 insertions(+), 1 deletion(-) diff --git a/python/mozbuild/mozbuild/action/test_archive.py b/python/mozbuild/mozbuild/action/test_archive.py index bb6c073591a1..308369cb6e05 100644 --- a/python/mozbuild/mozbuild/action/test_archive.py +++ b/python/mozbuild/mozbuild/action/test_archive.py @@ -478,6 +478,16 @@ ARCHIVE_FILES = { ], } +if buildconfig.substs.get('MOZ_CODE_COVERAGE'): + ARCHIVE_FILES['common'].append({ + 'source': buildconfig.topsrcdir, + 'base': 'python/mozbuild/', + 'patterns': [ + 'mozpack/**', + 'mozbuild/codecoverage/**', + ], + }) + if buildconfig.substs.get('MOZ_ASAN') and buildconfig.substs.get('CLANG_CL'): asan_dll = { diff --git a/testing/mozharness/configs/unittests/linux_unittest.py b/testing/mozharness/configs/unittests/linux_unittest.py index 0be74d31e313..98b1413a0b8e 100644 --- a/testing/mozharness/configs/unittests/linux_unittest.py +++ b/testing/mozharness/configs/unittests/linux_unittest.py @@ -67,6 +67,8 @@ config = { "modules/*", "mozbase/*", "tools/*", + "mozpack/*", + "mozbuild/*", ], "specific_tests_zip_dirs": { "mochitest": ["mochitest/*"], diff --git a/testing/mozharness/configs/unittests/win_taskcluster_unittest.py b/testing/mozharness/configs/unittests/win_taskcluster_unittest.py index 63fc4ab0505c..049098c915f4 100644 --- a/testing/mozharness/configs/unittests/win_taskcluster_unittest.py +++ b/testing/mozharness/configs/unittests/win_taskcluster_unittest.py @@ -61,6 +61,8 @@ config = { "modules/*", "mozbase/*", "tools/*", + "mozpack/*", + "mozbuild/*", ], "specific_tests_zip_dirs": { "mochitest": ["mochitest/*"], diff --git a/testing/mozharness/configs/unittests/win_unittest.py b/testing/mozharness/configs/unittests/win_unittest.py index 18125a67f9f1..34911d743e5a 100644 --- a/testing/mozharness/configs/unittests/win_unittest.py +++ b/testing/mozharness/configs/unittests/win_unittest.py @@ -52,6 +52,8 @@ config = { "modules/*", "mozbase/*", "tools/*", + "mozpack/*", + "mozbuild/*", ], "specific_tests_zip_dirs": { "mochitest": ["mochitest/*"], diff --git a/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py b/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py index 5105b3d6633d..45d3dcdc9a6c 100644 --- a/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py +++ b/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py @@ -152,6 +152,8 @@ class FirefoxUITests(TestingMixin, VCSToolsScript, CodeCoverageMixin): 'mozbase/*', 'tools/mozterm/*', 'tools/wptserve/*', + 'mozpack/*', + 'mozbuild/*', ] super(FirefoxUITests, self).download_and_extract(extract_dirs=extract_dirs) diff --git a/testing/mozharness/scripts/web_platform_tests.py b/testing/mozharness/scripts/web_platform_tests.py index 98b92e4ce84b..8390d8f1f133 100755 --- a/testing/mozharness/scripts/web_platform_tests.py +++ b/testing/mozharness/scripts/web_platform_tests.py @@ -277,7 +277,9 @@ class WebPlatformTest(TestingMixin, MercurialScript, BlobUploadMixin, CodeCovera "mozbase/*", "marionette/*", "tools/*", - "web-platform/*"], + "web-platform/*", + "mozpack/*", + "mozbuild/*"], suite_categories=["web-platform"]) def _install_fonts(self):