tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit de9d6a8d595215e8b8a5f360ec9543c19c0b97ed
parent 463df717bd52dcd7433ef1bb4eeb28399143ed99
Author: Joel Maher <joel.maher@gmail.com>
Date:   Thu,  2 Oct 2025 04:07:38 +0000

Bug 1963942 - Do not error on missing top activity when using an emulator. r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D266736

Diffstat:
Mtesting/mozbase/mozdevice/mozdevice/remote_process_monitor.py | 17++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/testing/mozbase/mozdevice/mozdevice/remote_process_monitor.py b/testing/mozbase/mozdevice/mozdevice/remote_process_monitor.py @@ -204,11 +204,18 @@ class RemoteProcessMonitor: self.log.info("Failed to get top activity, retrying, once...") top = self.device.get_top_activity(timeout=60) if not has_output and top is None: - self.log.error( - f"TEST-UNEXPECTED-FAIL | {self.last_test_seen} | " - "application failed to get top activity and stdout" - ) - return 0 + if self.device._device_serial.startswith("emulator-"): + self.log.info( + "skipping error on emulator, " + "application failed to get top activity and stdout" + ) + break + else: + self.log.error( + f"TEST-UNEXPECTED-FAIL | {self.last_test_seen} | " + f"application failed to get top activity and stdout" + ) + return 0 # Flush anything added to stdout during the sleep self.read_stdout()