gecko-dev/testing/mozharness
Gregory Szorc d075b95eeb Bug 1304176 - Set BaseScript.topsrcdir if we have a source checkout; r=ted
We're going to start executing more mozharness scripts from a source
checkout. Rather than add config options to specify the location of
a source checkout - something that must be added to every mozharness
invocation - we teach BaseScript.__init__ to recognize when we're
running from a source checkout and set self.topsrcdir accordingly.

This will allow any script or class to check for self.topsrcdir
and change behavior accordingly.

MozReview-Commit-ID: 3uxOjol7ntR

--HG--
extra : rebase_source : 40795fe231a908b42a13581db3ee079c13138412
2016-09-20 11:28:52 -07:00
..
configs revert Bug 1303590 - Remove Luciddream test suite r=aobreja CLOSED TREE 2016-09-21 08:55:24 -04:00
docs Bug 1274059 - Remove HgtoolVCS - Part 2, remove actual classes and docs for hgtool. r=nthomas 2016-08-19 09:09:08 -04:00
examples
external_tools Bug 1300191 - Move machine-configuration.json into mozharness; r=jmaher 2016-09-02 15:09:02 -06:00
mozfile
mozharness Bug 1304176 - Set BaseScript.topsrcdir if we have a source checkout; r=ted 2016-09-20 11:28:52 -07:00
mozinfo
mozprocess
scripts Bug 1278702 - Fail early in compiled-code tests with --artifact Try syntax; r=armenzg 2016-09-20 13:43:06 -04:00
test Bug 1272083 - Download and unpacking should be performed in process. r=gps 2016-08-25 11:04:16 -04:00
LICENSE
mach_commands.py
README.txt
requirements.txt Bug 1278103 - Google update their api client. Needs to update the client r=jlund 2016-06-13 15:31:50 +01:00
setup.cfg
setup.py
tox.ini
unit.sh

# 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! =)