Commit Graph

254 Commits

Author SHA1 Message Date
Ehsan Akhgari
71ca303dab Bug 1145375 - Don't kill the debugger if the user Ctrl-C's as running a mochitest; r=ted 2015-03-19 15:27:00 +01:00
Geoff Brown
ba7ed0bfce Bug 1084614 - Clean up orphan servers before starting mochitests or reftests; r=kmoir 2015-03-19 11:01:01 -06:00
Andrew Halberstadt
d907bbf554 Bug 1144194 - Only parse test manifests once in mochitest, r=jmaher 2015-03-17 16:18:34 -04:00
Joel Maher
e65f11b4bf Bug 1143010 - Stopping a mochitest-browser run is rocket science. r=ted 2015-03-16 11:33:35 -04:00
Andrew Halberstadt
03020c954b Bug 1131098 - Make mochitest use manifestparser's chunking algorithms and remove JS based ones, r=jmaher 2015-03-10 09:55:30 -04:00
Bob Owen
181d4e83ed Bug 1137166: Change the Content moreStrict sandbox pref to an integer to indicate the level of sandboxing. r=tabraldes 2015-03-10 08:03:12 +00:00
Nathan Froyd
c39386bb80 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
aa84634c8c 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
0c069fd2ef 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
1f778d301f 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
d77dce24d2 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
bc02c6b8e1 Backed out changeset ea625e85c72a (bug 1123763) for checktest orange on a CLOSED TREE 2015-02-09 14:00:13 -08:00
Andrew Halberstadt
9dd4f82c1d 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
1607ba6ded Bug 1110982 - Disabled tests for oth chunk and leaks (run-by-dir). r=RyanVM 2014-12-27 00:44:52 +05:30
Dave Townsend
121d197d22 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
0c6a9c70c7 bug 1129146 - Fix Mochitest NSPR logging upload r=ted 2015-02-04 09:58:37 -05:00
Joel Maher
a414cabae5 Bug 1041500 - Enable run-by-dir mode for mochitest-devtools. r=RyanVM
CLOSED TREE
2015-01-15 10:00:00 -05:00
Kershaw Chang
02c2794657 Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
Mark Goodwin
1e76535956 Bug 1096197 - Ensure SSL Error reports work when there is no failed certificate chain. r=keeler
--HG--
rename : browser/base/content/test/general/browser_bug846489.js => browser/base/content/test/general/browser_ssl_error_reports.js
rename : browser/base/content/test/general/browser_bug846489_content.js => browser/base/content/test/general/browser_ssl_error_reports_content.js
2015-01-07 02:28:00 -05:00
Kaustabh Datta Choudhury
f9ebb346ce 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
00274dd52f 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
e31fefb703 Bug 797164 - Push chrome files to b2g when needed; r=ahal 2014-12-23 14:17:41 -07:00
Vaibhav Agrawal
8fc2013025 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
8bc7cd43cd Bug 1112609 - Bisect Chunk does not run. r=jmaher 2014-12-18 11:09:00 -05:00
Ankit Goyal
ebfa6fb7e3 Bug 1109867 - Check for debugger before getting debugger info; r=gps 2014-12-17 22:30:50 -08:00
Chris Manchester
fc7f208250 Bug 1077870 - Log consistent test names (file paths relative to the srcdir) in mochitest. r=ahal
--HG--
extra : rebase_source : f82fe24e59ec60ded414ec44cec6f4aff95f2f5f
2014-12-15 12:05:55 -05:00
Bob Clary
c6933e9c74 Bug 1110940 - mochitest - support configurable tests.json manifest file name, r=jmaher. 2014-12-14 18:18:39 -08:00
Masatoshi Kimura
f90b33f08c Bug 1092835 - Workaround for old ssltunnel from hostutils. r=jmaher 2014-12-13 20:09:00 +09:00
Carsten "Tomcat" Book
a2e7fff727 Backed out changeset 9877aca65ef5 (bug 1038620) for causing Test Bustage on a CLOSED TREE 2014-12-12 14:57:39 +01:00
Kershaw Chang
78d7b20ea0 Bug 1038620 - Add --nested-oop option to mach test commands - v5. r=ted.mielczarek 2014-12-12 01:30:00 +01:00
Bob Owen
8fb2e99f27 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
312788bae2 Bug 1026290 - Push chrome test files to device; r=jmaher 2014-11-26 16:51:14 -07:00
Geoff Brown
63fe354c0e Bug 1026290: Do not filter logFile parameter from testConfig.js; r=chmanchester 2014-11-26 16:51:13 -07:00
Masatoshi Kimura
50efeb7c58 Bug 1100917 - Add config options for SSL3/RC4 only servers to ssltunnel. r=ted 2014-11-26 20:37:18 +09:00
Geoff Brown
4e322922b6 backout bde6ca1bff09 (bug 1026290) for maybe breaking robocop 2014-11-25 23:18:14 -07:00
Geoff Brown
32dd8f850b backout 272443dba538 (bug 1026290) for maybe breaking robocop 2014-11-25 23:18:12 -07:00
Geoff Brown
2316c6c426 Bug 1026290 - Push chrome test files to device; r=jmaher 2014-11-25 17:31:45 -07:00
Geoff Brown
6b63c0173f Bug 1026290 - Do not filter logFile parameter from testConfig.js; r=chmanchester 2014-11-25 17:31:44 -07:00
Carsten "Tomcat" Book
3028580f87 Backed out changeset 188d22215166 (bug 1057512) for causing dt2 memory leaks 2014-11-21 08:10:06 +01:00
Carsten "Tomcat" Book
f5165c4bfa Backed out changeset 34594cb8b2e4 (bug 1057512) 2014-11-21 08:09:44 +01:00
Joel Maher
3897d0746e 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
6c9f7edc18 Bug 1057512 - enable --run-by-dir for devtools* jobs. r=dminor 2014-11-20 07:49:04 -05:00
Joel Maher
56c18cf954 Bug 1057512 - enable --run-by-dir for browser-chrome e10s. r=dminor 2014-11-19 12:36:34 -05:00
Joel Maher
72ca5bb924 Bug 1057512 - --run-by-dir enabled for browser-chrome on trunk. r=RyanVM 2014-11-17 11:01:23 -05:00
Vaibhav Agrawal
9dfdde7f11 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)
60db8510c8 Bug 1091267 - Move automationutils:parseKeyValue to mochitest's runtests.py. r=ahal 2014-11-06 03:34:00 +01:00
Pankaj Malhotra(:bitgeeky)
dad688bcaa Bug 1091270 - Move isURL out of automationutils; r=jgriffin 2014-11-04 16:59:40 -08:00
Joel Maher
4a24af7f1a Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
Bob Owen
7487f3d78b 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
bec88b0686 Bug 1075240 - Log disabled tests as skips in mochitests. r=ahal 2014-10-02 11:08:41 -04:00