--no-pause-after-test should be the default behavior when running with MOZ_HEADLESS=1

NEW
Unassigned

Status

Testing
web-platform-tests
11 months ago
11 months ago

People

(Reporter: bz, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

I tried to run a single wpt test with MOZ_HEADLESS today, and it got to 

  0:05.97 LOG: Thread-TestrunnerManager-1 INFO Pausing until the browser exits

and then sat there.  Presumably because running on test defaults to --pause-after-test... but that may not make sense when running headless.
Instead of detecting the environment variable, we might wrap this under a new --headless flag in wptrunner. This could also apply the required MOZ_HEADLESS_{WIDTH,HEIGHT} settings depending on the platform (1024x768 for Windows, 1600x1200 for everything else) to fake the screen resolution that the Web Platform Tests expect.

:jgraham, does that sound right to you? And would we make this change in mozilla-central or send it upstream to the wptrunner GitHub?
Flags: needinfo?(james)

Comment 2

11 months ago
If we make the change in mozilla-central, it will be automatically upstreamed at some point. Your general approach sounds right to me.
Flags: needinfo?(james)
You need to log in before you can comment on or make changes to this bug.