summaryrefslogtreecommitdiffstats
path: root/testing/xpcshell/mach_commands.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/xpcshell/mach_commands.py
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/xpcshell/mach_commands.py')
-rw-r--r--testing/xpcshell/mach_commands.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/testing/xpcshell/mach_commands.py b/testing/xpcshell/mach_commands.py
index 68f1a4504e..8c8895fcad 100644
--- a/testing/xpcshell/mach_commands.py
+++ b/testing/xpcshell/mach_commands.py
@@ -164,9 +164,7 @@ class AndroidXPCShellRunner(MozbuildObject):
if not kwargs["symbolsPath"]:
kwargs["symbolsPath"] = os.path.join(self.distdir, "crashreporter-symbols")
- if self.substs.get("MOZ_BUILD_APP") == "b2g":
- kwargs["localAPK"] = None
- elif not kwargs["localAPK"]:
+ if not kwargs["localAPK"]:
for root, _, paths in os.walk(os.path.join(kwargs["objdir"], "gradle")):
for file_name in paths:
if file_name.endswith(".apk") and file_name.startswith(
@@ -195,10 +193,7 @@ class AndroidXPCShellRunner(MozbuildObject):
def get_parser():
build_obj = MozbuildObject.from_environment(cwd=here)
- if (
- conditions.is_android(build_obj)
- or build_obj.substs.get("MOZ_BUILD_APP") == "b2g"
- ):
+ if conditions.is_android(build_obj):
return parser_remote()
else:
return parser_desktop()
@@ -245,10 +240,7 @@ def run_xpcshell_test(command_context, test_objects=None, **params):
# pylint --py3k W1619
params["threadCount"] = int((cpu_count() * 3) / 2)
- if (
- conditions.is_android(command_context)
- or command_context.substs.get("MOZ_BUILD_APP") == "b2g"
- ):
+ if conditions.is_android(command_context):
from mozrunner.devices.android_device import (
InstallIntent,
get_adb_path,