Files
sousa-gecko/testing/mozharness
Gregory Mierzwinski fd725a2224 Bug 2038458 - Enable running browsertime tests on non-rooted devices. r=perftest-reviewers,aglavic
This patch makes changes to better handle the storage for the app/geckodriver to let us use non-rooted devices. The fixes here are needed to handle pulling/pushing the profile that gets used by fenix (both from raptor, and condprof). Note that `rm` doesn't always work depending on the storage/shell permissions currently in effect. Pushing overwrites existing files, and the pm clear's should handle other files, but there's still a possibility that some prior run data continues existing. A check is added when a non-rooted device is detected to ensure that the user understands the profile of the app will be deleted prior to running the test.

Differential Revision: https://phabricator.services.mozilla.com/D299548
2026-07-09 16:22:47 +00:00
..
…
…
…
…
…
…

# Mozharness

## Docs
* https://developer.mozilla.org/en-US/docs/Mozharness_FAQ
* https://wiki.mozilla.org/ReleaseEngineering/Mozharness
* http://moz-releng-mozharness.readthedocs.org/en/latest/mozharness.mozilla.html
* http://moz-releng-docs.readthedocs.org/en/latest/software.html#mozharness

## Submitting changes
Like any Gecko change, please create a patch or submit to Mozreview and
open a Bugzilla ticket under the Mozharness component:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Release%20Engineering&component=Mozharness

This bug will get triaged by Release Engineering

## Run unit tests
To run the unit tests of mozharness the `tox` package needs to be installed:

```
pip install tox
```

There are various ways to run the unit tests. Just make sure you are within the `$gecko_repo/testing/mozharness` directory before running one of the commands below:

```
tox                            # run all unit tests
tox -- -x                      # run all unit tests but stop after first failure
tox -- test/test_base_log.py   # only run the base log unit test
```

Happy contributing! =)