Commit Graph

298 Commits

Author SHA1 Message Date
Nathan Froyd
d0a8529382 Bug 1136700 - enable tweaking of the maximum number of timeouts for mochitests; r=jmaher
When running tests locally, it's occasionally useful to be able to
increase the number of tests permitted to timeout before declaring the
test run a failure.  This patch adds the necessary bits to SimpleTest
and the appropriate amount of plumbing to runtests.py and mach to make
that so.
2015-02-25 09:23:54 -05:00
Andrew Halberstadt
a729c1fa7d Bug 1127376 - PEP8-ify all mochitest .py files (auto-generated), r=ted
This change was generated using the `autopep8` module [1]. To replicate:

    $ pip install --upgrade autopep8
    $ cd gecko
    $ autopep8 -i -a -a -r testing/mochitest --exclude 'testing/mochitest/pywebsocket/*'

[1] https://github.com/hhatto/autopep8
2015-02-13 14:42:02 -05:00
Andrew Halberstadt
a74852785a Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
        yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)
2015-02-10 09:38:29 -05:00
Alexandre Lissy
0fefae79b9 Bug 1129173 - Properly detect B2G for workers interface tests. r=bent
Make use of SpecialPowers.isB2G to do the proper detection, and fix
mochitest execution for Mulet to include some B2G-specific prefs.
2015-02-10 06:51:00 +01:00
Joel Maher
f78e0e1616 Bug 1110982 - [backout] tracking bug to get --run-by-dir enabled for 'oth' job on trunk. r=RyanVM 2015-02-10 09:07:32 -05:00
Wes Kocher
68c12d8208 Backed out changeset ea625e85c72a (bug 1123763) for checktest orange on a CLOSED TREE 2015-02-09 14:00:13 -08:00
Andrew Halberstadt
5d4b7ab6cb Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
            yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)
2015-02-09 16:13:00 -05:00
Joel Maher
1cc3287861 Bug 1110982 - Disabled tests for oth chunk and leaks (run-by-dir). r=RyanVM 2014-12-27 00:44:52 +05:30
Dave Townsend
60900c154d Bug 1083281: Use flags to determine which chrome and about URIs are loaded in the content process. r=mconley, r=bsmedberg, r=jduell, r=mratcliffe 2015-02-05 08:09:15 -08:00
Patrick McManus
ae9a3239ce bug 1129146 - Fix Mochitest NSPR logging upload r=ted 2015-02-04 09:58:37 -05:00
Joel Maher
f0d4c17c58 Bug 1041500 - Enable run-by-dir mode for mochitest-devtools. r=RyanVM
CLOSED TREE
2015-01-15 10:00:00 -05:00
Kershaw Chang
2d0229cdd6 Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
Mark Goodwin
59ff650557 Bug 1096197 - Ensure SSL Error reports work when there is no failed certificate chain. r=keeler 2015-01-07 02:28:00 -05:00
Kaustabh Datta Choudhury
9c80bc89fd Bug 1115338 - ./mach mochitest-browser path/to/individual/test should always run test (despite skip-if/run-if conditions in manifest). r=jmaher 2015-01-06 01:16:13 +05:30
Chris Manchester
1df5f47c89 Bug 1113768 - Stop buffering a test's output after a failure is seen.;r=froydnj 2014-12-26 13:28:50 -05:00
Geoff Brown
109184120d Bug 797164 - Push chrome files to b2g when needed; r=ahal 2014-12-23 14:17:41 -07:00
Vaibhav Agrawal
bca10e7096 Bug 1103159 - Dealing with the error: UnboundLocalError: local variable 'result' referenced before assignment. r=jmaher 2014-12-19 11:58:00 +01:00
Kaustabh Datta Choudhury
810955a873 Bug 1112609 - Bisect Chunk does not run. r=jmaher 2014-12-18 11:09:00 -05:00
Ankit Goyal
7ef730613c Bug 1109867 - Check for debugger before getting debugger info; r=gps 2014-12-17 22:30:50 -08:00
Chris Manchester
5edcd4732e Bug 1077870 - Log consistent test names (file paths relative to the srcdir) in mochitest. r=ahal 2014-12-15 12:05:55 -05:00
Bob Clary
ed8ccf2eff Bug 1110940 - mochitest - support configurable tests.json manifest file name, r=jmaher. 2014-12-14 18:18:39 -08:00
Masatoshi Kimura
f4636fca5b Bug 1092835 - Workaround for old ssltunnel from hostutils. r=jmaher 2014-12-13 20:09:00 +09:00
Carsten "Tomcat" Book
167d0143fc Backed out changeset 9877aca65ef5 (bug 1038620) for causing Test Bustage on a CLOSED TREE 2014-12-12 14:57:39 +01:00
Kershaw Chang
5e27436702 Bug 1038620 - Add --nested-oop option to mach test commands - v5. r=ted.mielczarek 2014-12-12 01:30:00 +01:00
Bob Owen
1ff1eb96b8 Bug 1103946 Part 1: Change --content-sandbox mach / mochitest option to --strict-content-sandbox. r=jmaher
Also, change tests that are skipped using (contentSandbox != off) to (strictContentSandbox).
2014-12-10 09:34:03 +00:00
Geoff Brown
62bcbfdab0 Bug 1026290 - Push chrome test files to device; r=jmaher 2014-11-26 16:51:14 -07:00
Geoff Brown
df831214aa Bug 1026290: Do not filter logFile parameter from testConfig.js; r=chmanchester 2014-11-26 16:51:13 -07:00
Masatoshi Kimura
bf9798b4fb Bug 1100917 - Add config options for SSL3/RC4 only servers to ssltunnel. r=ted 2014-11-26 20:37:18 +09:00
Geoff Brown
958c88e271 backout bde6ca1bff09 (bug 1026290) for maybe breaking robocop 2014-11-25 23:18:14 -07:00
Geoff Brown
63e9a84585 backout 272443dba538 (bug 1026290) for maybe breaking robocop 2014-11-25 23:18:12 -07:00
Geoff Brown
d165da69e1 Bug 1026290 - Push chrome test files to device; r=jmaher 2014-11-25 17:31:45 -07:00
Geoff Brown
98b13e2a58 Bug 1026290 - Do not filter logFile parameter from testConfig.js; r=chmanchester 2014-11-25 17:31:44 -07:00
Carsten "Tomcat" Book
31f347cd4c Backed out changeset 188d22215166 (bug 1057512) for causing dt2 memory leaks 2014-11-21 08:10:06 +01:00
Carsten "Tomcat" Book
6cebfbcc23 Backed out changeset 34594cb8b2e4 (bug 1057512) 2014-11-21 08:09:44 +01:00
Joel Maher
ef03827380 Bug 1057512 - hotfix - disable m-e10s(dt) run-by-dir as it fails. r=dminor 2014-11-20 09:35:43 -05:00
Joel Maher
651c369c37 Bug 1057512 - enable --run-by-dir for devtools* jobs. r=dminor 2014-11-20 07:49:04 -05:00
Joel Maher
2ceaedd8fc Bug 1057512 - enable --run-by-dir for browser-chrome e10s. r=dminor 2014-11-19 12:36:34 -05:00
Joel Maher
1538eb47e5 Bug 1057512 - --run-by-dir enabled for browser-chrome on trunk. r=RyanVM 2014-11-17 11:01:23 -05:00
Vaibhav Agrawal
ca53ae4690 Bug 1089037 - Removing invalid mochitests and moving webapprt-content tests to a seperate "webapprtContent" folder in object directory. r=jmaher, marco 2014-11-13 12:30:00 +01:00
Pankaj Malhotra(:bitgeeky)
43116972b8 Bug 1091267 - Move automationutils:parseKeyValue to mochitest's runtests.py. r=ahal 2014-11-06 03:34:00 +01:00
Pankaj Malhotra(:bitgeeky)
ebf9456905 Bug 1091270 - Move isURL out of automationutils; r=jgriffin 2014-11-04 16:59:40 -08:00
Joel Maher
5741b0639b Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
Bob Owen
14b8237b8b Bug 1037445: When pre-Vista, for testing purposes allow std handles to be inherited by child process when an env var is set. r=jmaher,dvander 2014-10-15 08:26:39 +01:00
Chris Manchester
b24aa3e024 Bug 1075240 - Log disabled tests as skips in mochitests. r=ahal 2014-10-02 11:08:41 -04:00
Andrew McCreight
11c6399dd7 Bug 1076969 - processLeakLog should come up with reasonable defaults itself. r=jmaher
Instead of grabbing attributes off options at every call site, pass
in the options object to processLeakLog, and attempt to get the attributes
there. If not present, use a restrictive default value.

This will prevent silent harness failures if one of the many ways to invoke
processLeakLog fails to set up these options, and makes it so they
don't have to set it up if they don't care.
2014-10-06 14:23:17 -07:00
Mark Hammond
5a8b2ae7a8 Bug 1075324 - mochitest logs only report output was truncated when it actually was. r=ahal 2014-10-03 16:15:06 +10:00
Andrew McCreight
30014b26b9 Bug 1068276, part 1 - Allow configuring which type of processes we complain about when there's no leak log. r=jmaher
Then don't warn for missing logs from tab and geckomediaplugin processes, or default processes on B2G.
2014-09-30 14:17:27 -07:00
Andrew McCreight
4c9a0b67c6 Bug 1067664, part 1 - Allow different leak thresholds for different types of processes. r=jmaher 2014-09-30 09:54:25 -07:00
Jim Mathies
9278ba98a4 Bug 1072417 - Remove the browser.tabs.remote pref and turn everything it controls on by default. r=felipe 2014-09-29 16:11:08 -05:00
Ryan VanderMeulen
083c9b620b Backed out 4 changesets (bug 1068276, bug 1067664) for Android leaktest complaints.
Backed out changeset 846faaa68219 (bug 1068276)
Backed out changeset 35e71ffcf8e1 (bug 1068276)
Backed out changeset 605f59a806fd (bug 1067664)
Backed out changeset 2d5b7ea96b70 (bug 1067664)
2014-09-26 16:02:12 -04:00