gecko-dev/testing/mozharness
Gregory Szorc 55c967d522 Bug 1365080 - Replace self.query_exe('python') with sys.executable; r=ted
mozharness is Python. self.query_exe('python') could resolve to a
different Python interpreter from what mozharness is running as.

In order to promote consistency, always invoke python processes with
the Python being used to run mozharness.

In some cases, this may cause former `python` processes to run as
Python 2.7 instead of 2.6 (since `python` resolves to a 2.6 interpreter
on many systems). It may also result in slightly different Python
binaries being used. But I think sharing interpreters between the
mozharness script and launched processes is logical. So if this causes
problems, I'd like to flush those out.

MozReview-Commit-ID: KfawUvT5jgW

--HG--
extra : source : b6f04897fdda51e42612617a89a93f696edbdf92
extra : amend_source : 32dafc7c9dc2cec80bc289bd1a17cdbb8cde5025
2017-05-15 16:02:28 -07:00
..
configs Bug 1362148 - Don't collect package metrics for some Android builds; r=ted 2017-05-12 13:24:28 -07:00
docs Bug 1359988 - Remove mozharness docs related to gaia; r=mshal 2017-04-26 13:55:10 -07:00
examples
external_tools Bug 1317594 - Vendor latest robustcheckout extension; r=me 2017-04-11 13:35:42 -07:00
mozfile
mozharness Bug 1365080 - Replace self.query_exe('python') with sys.executable; r=ted 2017-05-15 16:02:28 -07:00
mozinfo
mozprocess
scripts Bug 1365080 - Replace self.query_exe('python') with sys.executable; r=ted 2017-05-15 16:02:28 -07:00
test Bug 1330837 - Remove functionality to apply and push; r=aki 2017-04-11 14:23:00 -07:00
LICENSE
README.txt
mach_commands.py Bug 1263230 - Remove in-tree references to IPC/OOP reftest modes. r=ahal 2016-11-07 08:59:49 -05:00
requirements.txt Bug 1330837 - Use Mercurial 4.1 in mozharness tests; r=aki 2017-04-11 14:26:29 -07:00
setup.cfg
setup.py
tox.ini Bug 1330837 - Use Mercurial 4.1 in mozharness tests; r=aki 2017-04-11 14:26:29 -07:00
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! =)