| commit | 4c1002ad86307d5511ce9bef30b703bbf7a26816 | [log] [tgz] |
|---|---|---|
| author | Chris Masone <cmasone@google.com> | Mon Jun 30 16:05:03 2025 -0700 |
| committer | Chris Masone <cmasone@google.com> | Tue Jul 01 16:02:12 2025 -0700 |
| tree | 946778edbc160b0c3ed9df33e877caaa69f26b39 | |
| parent | da7d0e60dd28ede70f80b18c20d9658ebf8a0f76 [diff] |
[mobly] Exit non-zero on signals.TestAbortAll Per https://github.com/google/mobly/issues/960 Mobly incorrectly exits either 0 or 1 when a test raises signals.TestAbortAll -- depending on whether any previous tests have failed or not. Instead of exiting 1 in the case of all tests being aborted, like any other failure, exit with a special code. There aren't a lot of standard codes in use, but some internal google docs suggest 40 for generic retryable errors. So use that. Bug: b/425675837 Change-Id: Iae58f6c896df2cc3d93ca9c51a84513dcd82db34 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/google/mobly/+/1312367 Reviewed-by: Prashanth Swaminathan <prashanthsw@google.com>
Mobly is a Python-based test framework that specializes in supporting test cases that require multiple devices, complex environments, or custom hardware setups.
Here are some example use cases:
Mobly can support many different types of devices and equipment, and it's easy to plug your own device or custom equipment/service into Mobly.
Mobly comes with a set of libs to control common devices like Android devices.
While developed by Googlers, Mobly is not an official Google product.
Mobly requires python 3.11 or newer.
Mobly tests could run on the following platforms:
You can install the released package from pip
pip install mobly
or install from the source to use the bleeding edge:
git clone https://github.com/google/mobly.git cd mobly pip install -e .
You may need sudo for the above commands if your system has certain permission restrictions.
Mobly 101 - Simple test examples to get you started with Mobly.
Mobly Instrumentation Runner Tutorial - How to use Mobly's Android instrumentation test runner to run Android instrumentation tests.
Mobly AndroidDevice Service - Create custom service to attach to Mobly's AndroidDevice controller.
The Mobly Snippet projects let users better control Android devices.