forked from mirrors/gecko-dev
The fact that the test runner app is defined inside the geckoview test package has always felt like a hack to me. I've mistakenly thought that TestRunnerActivity was used in GeckoView's junit tests many times (even though that's not the case). From what I can see, there's no way to generate an AAB package for androidTest, so to be able to run Gecko tests as AAB we finally need to define the TestRunner as an ordinary package instead. Differential Revision: https://phabricator.services.mozilla.com/D127320
35 lines
1 KiB
Python
35 lines
1 KiB
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
"""
|
|
Apply some defaults and minor modifications to the pgo jobs.
|
|
"""
|
|
|
|
|
|
from gecko_taskgraph.transforms.base import TransformSequence
|
|
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
transforms = TransformSequence()
|
|
|
|
|
|
@transforms.add
|
|
def run_profile_data(config, jobs):
|
|
for job in jobs:
|
|
build_platform = job["attributes"].get("build_platform")
|
|
instr = "instrumented-build-{}".format(job["name"])
|
|
if "android" in build_platform:
|
|
artifact = "geckoview-test_runner.apk"
|
|
elif "macosx64" in build_platform:
|
|
artifact = "target.dmg"
|
|
elif "win" in build_platform:
|
|
artifact = "target.zip"
|
|
else:
|
|
artifact = "target.tar.bz2"
|
|
job.setdefault("fetches", {})[instr] = [
|
|
artifact,
|
|
"target.crashreporter-symbols.zip",
|
|
]
|
|
yield job
|