Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Tooru Fujisawa 2108f90fcf Bug 1623965 - Improve error message when binary not found while testing. r=glandium,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,Bebe,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D67726
2020-04-21 11:58:04 +00:00
Botond Ballo abcab3d351 Bug 1599930 - Support --no-install for web platform tests. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D55046

--HG--
extra : moz-landing-system : lando
2020-01-28 15:28:19 +00:00
James Graham f6819f7712 Bug 1583603 - Set formatter defaults correctly for mozlog, r=maja_zf
Gecko was trying to pass formatter options in by default, which
doesn't work if the user overrides the formatter. Instead pass in the
default options explicitly using the designed mechanism, which
previously wasn't exposed in wpt.

Differential Revision: https://phabricator.services.mozilla.com/D47117

--HG--
extra : moz-landing-system : lando
2019-09-25 19:37:38 +00:00
Andreas Tolfsen f5d787c5c9 bug 1579864: wpt: fix negation of wptrunner success indicator; r=jgraham
wptrunner.start() negates the return value of wptrunner.run() so
that false is used to indicate that the test run was successful.
This is then (wrongly) negated again by WebPlatformTestsRunner.run()
and coerced into an integer.

Quick demonstration:

	>>> unexpected_total = 0
	>>> run_tests_rv = unexpected_total == 0
	>>> start_rv = not run_tests_rv
	>>> run_rv = int(not start_rv)
	>>> run_rv
	1

This causes git-bisect(1) (specifically "git bisect run ./mach wpt")
to not work because it relies on the exit code to tell if a commit
is good or bad.

This patch offers the least invasive fix for the problem by not
altering the API of the wptrunner test harness.

Differential Revision: https://phabricator.services.mozilla.com/D45190

--HG--
extra : moz-landing-system : lando
2019-09-09 14:48:21 +00:00
Maja Frydrychowicz b867fd4d06 Bug 1560023 - Rename wpt product fennec to firefox_android; r=jgraham,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D36630

--HG--
rename : testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/fennec.py => testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/firefox_android.py
extra : moz-landing-system : lando
2019-07-09 18:10:03 +00:00
James Graham a44e6d715d Bug 1511335 - Fix logging setup for ./mach wpt --product, r=ahal
When running non-Firefox products in wpt we go through the run.py
script from upstream. Therefore we need to initialise the logger in
that module as well as the one in wptrunner now that it's been
properly converted to use logging rather than print statements.

In addition, we change the run.py module to allow passing in logging
defaults for the case where nothing is specified on the command line
since the behaviour for wpt upstream is different to the behaviour for
gecko.

Differential Revision: https://phabricator.services.mozilla.com/D13547

--HG--
extra : moz-landing-system : lando
2018-12-04 21:53:27 +00:00
Brindusan Cristian 966d95816c Backed out 12 changesets (bug 1497898) for build bustages. CLOSED TREE
Backed out changeset 57877c614829 (bug 1497898)
Backed out changeset 22a06c8c8dc6 (bug 1497898)
Backed out changeset 7bba4d617db6 (bug 1497898)
Backed out changeset 3a9a7760db5c (bug 1497898)
Backed out changeset c482d18cc050 (bug 1497898)
Backed out changeset 2caa5633dea1 (bug 1497898)
Backed out changeset 48be184d5377 (bug 1497898)
Backed out changeset 184bc31c33a6 (bug 1497898)
Backed out changeset c3cb0408498c (bug 1497898)
Backed out changeset a6a89509add7 (bug 1497898)
Backed out changeset 9afac925aef8 (bug 1497898)
Backed out changeset 5e3b8ad4c8f4 (bug 1497898)
2018-10-19 15:37:41 +03:00
James Graham 1923e35453 Bug 1497898 - Update gecko wpt manifest update to use caches, r=ato
Depends on D8231

Differential Revision: https://phabricator.services.mozilla.com/D8232

--HG--
extra : moz-landing-system : lando
2018-10-10 17:51:42 +00:00
James Graham 8df230bb58 Bug 1495372 - Unify wpt manifest download and update, r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

Differential Revision: https://phabricator.services.mozilla.com/D7497
2018-10-04 14:19:38 +01:00
James Graham 7b657769c4 Bug 1494308 - Use consistent logger in wpt commands r=ato
Before we were using a different logger for the manifest download and the actual test run.
This caused timestamps to get reset in a confusing way. Now create the logger early and
share it for all the subseteps.

Depends on D7171

Differential Revision: https://phabricator.services.mozilla.com/D7172

--HG--
extra : moz-landing-system : lando
2018-09-29 14:51:44 +00:00
Maja Frydrychowicz 85c346289b Bug 1323620 - Add "fennec" product to wptrunner. r=jgraham
This allows running web-platform-tests on Fennec given a running emulator.
(Which is how we expect the tests to run in automation as well -- the
android_emulator_unittest mozharness script takes care of emulator
start-up.) It also hooks up ./mach wpt.

wptrunner sets up a profile for Fennec, forwards the marionette port
and starts up Fennec, etc.

= Usage =

Set your mozconfig to build fennec.

Start an emulator: `./mach android-emulator --version x86`
Install fennec: `./mach build && ./mach package && ./mach install`
Run the tests:

```
./mach wpt --product=fennec --testtype=testharness
--certutil-binary path/to/host/os/certutil path/to/some/tests
```

Differential Revision: https://phabricator.services.mozilla.com/D1587
2018-06-15 16:30:58 +00:00
James Graham 62407a872c Bug 1390896 - Make mach wpt compatible with latest upstream, r=maja_zf
Upstream wpt changed from having a wptrun script to a wpt script with
a run subcommand. This involved some internal movement of code which
broke the `mach wpt` command when used with a non-firefox
product. This commit changes the mach integration to be compatible
with the new upstream API.

MozReview-Commit-ID: 1hvmZedNHSX

--HG--
extra : rebase_source : decd24551c2c5eaaae21eb64c7c376110b3de5b7
2017-08-16 15:42:30 +01:00
James Graham 4480587bb8 Bug 1294820 - Add support for running wpt from one-click loaner mach environment, r=ahal
Allow running |mach wpt| on one click loaners in order to run
web-platform-tests tests.

This implementation is just like the one for other testsuites using
thee packaged tests rather than the checkout that we get with wpt, at
least on Linux. That's also where the tests run from so it seems
reasonable for now. Moving to the checkout in the future could remove
some of the logic here by using a fake mozbuild environment so that
the testsuite itself doesn't have to implement anything much.

MozReview-Commit-ID: CaewrdjJ2ef

--HG--
extra : rebase_source : 491b8014d48f06ff5bd41b28cc985608981fbdf4
2017-06-19 19:20:41 +01:00