diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /testing/mozbase/mozrunner | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.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.py | 18 |
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) |