зеркало из https://github.com/mozilla/gecko-dev.git
aa78ee9e95
Currently 'stop-emulator' is its own action in mozharness. This means that anytime the mozharness script finishes emulators will get shutdown. Usually, this is what we want to do. But if the user passes in --no-run-tests, then presumably they are intending to run tests at a later time for some reason. But when they do this, the emulator will be terminated, and then running tests later no longer works. The main place where this becomes a problem is on interactive loaners in taskcluster. This patch fixes the problem by instead running 'stop-emulator' only after the 'run-tests' step finishes. So if --no-run-tests is passed in, the emulator will be left open. MozReview-Commit-ID: 4lsKGpizfH7 --HG-- extra : rebase_source : e29733a4a69d4d063f225754d2ad8886e22b4782 |
||
---|---|---|
.. | ||
configs | ||
docs | ||
examples | ||
external_tools | ||
mozfile | ||
mozharness | ||
mozinfo | ||
mozprocess | ||
scripts | ||
test | ||
LICENSE | ||
README.txt | ||
mach_commands.py | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
tox.ini | ||
unit.sh |
README.txt
# 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! =)