mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1634516 Extend the android applink tests to cover all variations of fenix r=tarek,sparky
Adds support for all variations of fenix (app name and activity passed by argument to mach perfest) Fixes bug in mach perftest argument passing (android-activity was not being set) Differential Revision: https://phabricator.services.mozilla.com/D73334
This commit is contained in:
parent
5502746963
commit
5276336dcf
@ -46,6 +46,7 @@ class AndroidDevice(Layer):
|
||||
|
||||
def __call__(self, metadata):
|
||||
self.app_name = self.get_arg("android-app-name")
|
||||
self.android_activity = self.get_arg("android-activity")
|
||||
self.metadata = metadata
|
||||
try:
|
||||
self.device = ADBDevice(verbose=True, timeout=30)
|
||||
|
@ -5,31 +5,13 @@ from mozperftest.browser.browsertime import add_options
|
||||
|
||||
url = "'https://www.example.com'"
|
||||
|
||||
common_options = [
|
||||
("processStartTime", "true"),
|
||||
("firefox.disableBrowsertimeExtension", "true"),
|
||||
("firefox.android.intentArgument", "'-a'"),
|
||||
("firefox.android.intentArgument", "'android.intent.action.VIEW'"),
|
||||
("firefox.android.intentArgument", "'-d'"),
|
||||
("firefox.android.intentArgument", url),
|
||||
]
|
||||
|
||||
app_options = {
|
||||
"org.mozilla.geckoview_example": [
|
||||
(
|
||||
"firefox.android.activity",
|
||||
"'org.mozilla.geckoview_example.GeckoViewActivity'",
|
||||
)
|
||||
],
|
||||
"org.mozilla.fennec_aurora": [
|
||||
("firefox.android.activity", "'org.mozilla.fenix.IntentReceiverActivity'")
|
||||
],
|
||||
"org.mozilla.firefox": [
|
||||
("firefox.android.activity", "'org.mozilla.gecko.BrowserApp'")
|
||||
],
|
||||
}
|
||||
common_options = [("processStartTime", "true"),
|
||||
("firefox.disableBrowsertimeExtension", "true"),
|
||||
("firefox.android.intentArgument", "'-a'"),
|
||||
("firefox.android.intentArgument", "'android.intent.action.VIEW'"),
|
||||
("firefox.android.intentArgument", "'-d'"),
|
||||
("firefox.android.intentArgument", url)]
|
||||
|
||||
|
||||
def before_runs(env, **kw):
|
||||
add_options(env, common_options)
|
||||
add_options(env, app_options[env.get_arg("android-app-name")])
|
||||
|
Loading…
x
Reference in New Issue
Block a user