summaryrefslogtreecommitdiffstats
path: root/testing/mozbase/mozrunner
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/mozbase/mozrunner
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/mozbase/mozrunner')
-rw-r--r--testing/mozbase/mozrunner/mozrunner/devices/android_device.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/testing/mozbase/mozrunner/mozrunner/devices/android_device.py b/testing/mozbase/mozrunner/mozrunner/devices/android_device.py
index 45565349f5..7cbec1b6f8 100644
--- a/testing/mozbase/mozrunner/mozrunner/devices/android_device.py
+++ b/testing/mozbase/mozrunner/mozrunner/devices/android_device.py
@@ -260,7 +260,7 @@ def _maybe_update_host_utils(build_obj):
# Compare, prompt, update
if existing_version and manifest_version:
- hu_version_regex = "host-utils-([\d\.]*)"
+ hu_version_regex = r"host-utils-([\d\.]*)"
manifest_version = float(re.search(hu_version_regex, manifest_version).group(1))
existing_version = float(re.search(hu_version_regex, existing_version).group(1))
if existing_version < manifest_version:
@@ -305,11 +305,21 @@ def verify_android_device(
Returns True if the emulator was started or another device was
already connected.
"""
- if "MOZ_DISABLE_ADB_INSTALL" in os.environ:
+ if "MOZ_DISABLE_ADB_INSTALL" in os.environ or install == InstallIntent.NO:
install = InstallIntent.NO
_log_info(
- "Found MOZ_DISABLE_ADB_INSTALL in environment, skipping android app"
- "installation"
+ "Found MOZ_DISABLE_ADB_INSTALL in environment and/or the"
+ " --noinstall flag, skipping android app installation"
+ )
+ else:
+ _log_info(
+ "*********************************************************************\n"
+ "Neither the MOZ_DISABLE_ADB_INSTALL environment variable nor the\n"
+ "--noinstall flag was found. The code will now uninstall the current\n"
+ "app then re-install the android app from a different source. If you\n"
+ "don't want this set your local env so that\n"
+ "MOZ_DISABLE_ADB_INSTALL=True or pass the --noinstall flag\n"
+ "*********************************************************************"
)
device_verified = False
emulator = AndroidEmulator("*", substs=build_obj.substs, verbose=verbose)