зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6bd5ee09a0
Коммит
ee392f1c3d
|
@ -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"])
|
||||
|
|
Загрузка…
Ссылка в новой задаче