gecko-dev/testing/mozbase
Gregory Szorc a358731e48 Bug 1286900 - Add environment variable to define location of mozinfo.json; r=ted
As part of converting WPT to run from a source checkout in automation,
I ran into problems where mozinfo.json wasn't being loaded, causing
several tests to fail. This is because mozinfo.json is only found
from a source directory or from a parent of the WPT meta directory.

Before, mozinfo.json was provided by the "common" tests zip file
and extracted to the base of the destination directory. WPT files
were extracted to a "web-platform" sub-directory. So mozinfo.json
was in a parent directory of "web-platform/meta" and was loaded
automatically.

Now that we want to run WPT out of the source directory, there is
no mozinfo.json and the source directory and no mozinfo.json can be
loaded.

This commit teaches mozinfo.json to look in a MOZINFO_PATH environment
variable for the path to mozinfo.json. This allows mozinfo.json
to exist anywhere on the filesystem. This provides a lot more
flexibility for loading the file.

MozReview-Commit-ID: 1I1cxS1IeyY

--HG--
extra : rebase_source : b06de2b53d3fb26df2c7b1c6d034644c20e47577
2016-09-26 15:51:32 -07:00
..
docs Backed out changeset 200da85932e9 (bug 1230862) for valgrind perma failures 2016-02-10 11:04:50 +01:00
manifestparser Bug 1296735 - [manifestparser] pathprefix filter should use absolute paths if the filter is also absolute, r=jmaher 2016-08-22 13:31:56 -04:00
mozcrash Bug 1274395 - Delete pending crash reports before running tests; r=jmaher 2016-05-25 14:48:42 -06:00
mozdebug Bug 1282184 - Use lldb from Xcode install rather than system install if possible. r=ted 2016-06-28 11:50:16 -07:00
mozdevice Bug 1300163 - Add a --adbpath argument to mochitest Android to allow explicitly setting the adb binary, r=gbrown 2016-09-02 14:26:16 -04:00
mozfile Bug 1287496 - Increment sleep timespan by (attempts * delay) seconds. r=ted 2016-07-18 18:12:01 +01:00
mozhttpd Bug 1257510 - Use modern exception syntax in mozbase; r=ahal 2016-03-18 09:03:25 +01:00
mozinfo Bug 1286900 - Add environment variable to define location of mozinfo.json; r=ted 2016-09-26 15:51:32 -07:00
mozinstall
mozleak Bug 1227347, part 3 - Remove object-count leak suppression infrastructure. r=erahm 2016-04-26 11:46:28 -07:00
mozlog Bug 1265582 - Fix reftest structured logs to match wpt, r=ahal 2016-09-27 22:54:50 +01:00
moznetwork
mozprocess Bug 1176758 - Release mozprocess 0.23 and mozrunner 6.12. r=ahal 2016-06-30 16:45:21 +02:00
mozprofile Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske 2016-08-15 17:28:05 -07:00
mozrunner Bug 1284874 - Represent am command as one string in FennecRunner; r=ahal 2016-07-25 20:40:36 -04:00
mozscreenshot
mozsystemmonitor Bug 1272782 - Bump mozsystemmonitor version to 0.3; r=ahal 2016-05-13 14:11:40 -07:00
moztest
mozversion
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
packages.txt Backed out changeset 200da85932e9 (bug 1230862) for valgrind perma failures 2016-02-10 11:04:50 +01:00
README.md
setup_development.py
test-manifest.ini Backed out changeset 200da85932e9 (bug 1230862) for valgrind perma failures 2016-02-10 11:04:50 +01:00
test.py
versioninfo.py

Mozbase

Mozbase is a set of easy-to-use Python packages forming a supplemental standard library for Mozilla. It provides consistency and reduces redundancy in automation and other system-level software. All of Mozilla's test harnesses use mozbase to some degree, including Talos, mochitest, reftest, Autophone, and Eideticker.

Learn more about mozbase at the project page.

Read detailed docs online, or build them locally by running "make html" in the docs directory.

Consult open bugs and feel free to file new bugs.