Bug 1498338 [wpt PR 13468] - Switch to GroupingFormatter by default for wpt run., a=testonly

Automatic update from web-platform-testsSwitch to GroupingFormatter by default for wpt run. (#13468)

This provides very low-verbosity output, just recording the current test, any unexpected
failures, and a summary of results at the end. It's not very suitable for CI where log
messages and timestamps are desirable, but may be the best choice for local testruns.
--

wpt-commits: c6f9238024b1a1f320132cd61e79e7e8dbce3510
wpt-pr: 13468
This commit is contained in:
jgraham 2018-10-16 09:58:33 +00:00 коммит произвёл James Graham
Родитель 6bd5ee09a0
Коммит ee392f1c3d
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -14,7 +14,7 @@ test_infrastructure() {
else
ARGS=$1
fi
./wpt run --yes --manifest ~/meta/MANIFEST.json --metadata infrastructure/metadata/ --install-fonts $ARGS $PRODUCT infrastructure/
./wpt run --log-tbpl - --yes --manifest ~/meta/MANIFEST.json --metadata infrastructure/metadata/ --install-fonts $ARGS $PRODUCT infrastructure/
}
main() {

Просмотреть файл

@ -461,6 +461,7 @@ product_setup = {
def setup_wptrunner(venv, prompt=True, install_browser=False, **kwargs):
from wptrunner import wptrunner, wptcommandline
import mozlog
global logger
@ -470,7 +471,12 @@ def setup_wptrunner(venv, prompt=True, install_browser=False, **kwargs):
kwargs["product"] = product_parts[0]
sub_product = product_parts[1:]
wptrunner.setup_logging(kwargs, {"mach": sys.stdout})
# Use the grouped formatter by default where mozlog 3.9+ is installed
if hasattr(mozlog.formatters, "GroupingFormatter"):
default_formatter = "grouped"
else:
default_formatter = "mach"
wptrunner.setup_logging(kwargs, {default_formatter: sys.stdout})
logger = wptrunner.logger
check_environ(kwargs["product"])