diff --git a/testing/web-platform/tests/tools/ci/ci_wptrunner_infrastructure.sh b/testing/web-platform/tests/tools/ci/ci_wptrunner_infrastructure.sh index 3147164ac886..0d4c2a519125 100755 --- a/testing/web-platform/tests/tools/ci/ci_wptrunner_infrastructure.sh +++ b/testing/web-platform/tests/tools/ci/ci_wptrunner_infrastructure.sh @@ -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() { diff --git a/testing/web-platform/tests/tools/wpt/run.py b/testing/web-platform/tests/tools/wpt/run.py index 7bc43a314c9c..303dbdca543b 100644 --- a/testing/web-platform/tests/tools/wpt/run.py +++ b/testing/web-platform/tests/tools/wpt/run.py @@ -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"])